jodd.vtor.constraint
Class NotBlankConstraint

java.lang.Object
  extended by jodd.vtor.constraint.NotBlankConstraint
All Implemented Interfaces:
ValidationConstraint<NotBlank>

public class NotBlankConstraint
extends java.lang.Object
implements ValidationConstraint<NotBlank>


Constructor Summary
NotBlankConstraint()
           
 
Method Summary
 void configure(NotBlank annotation)
          Configures constraint from associated annotation.
 boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
          Performs validation in context of target object on provided value.
static boolean validate(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotBlankConstraint

public NotBlankConstraint()
Method Detail

configure

public void configure(NotBlank annotation)
Description copied from interface: ValidationConstraint
Configures constraint from associated annotation.

Specified by:
configure in interface ValidationConstraint<NotBlank>

isValid

public boolean isValid(ValidationConstraintContext vcc,
                       java.lang.Object value)
Description copied from interface: ValidationConstraint
Performs validation in context of target object on provided value.

Specified by:
isValid in interface ValidationConstraint<NotBlank>
Returns:
true if validation passes, otherwise false.

validate

public static boolean validate(java.lang.Object value)


Copyright © 2003-2011 Jodd Team