jodd.vtor.constraint
Class NotNullConstraint

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

public class NotNullConstraint
extends java.lang.Object
implements ValidationConstraint<NotNull>


Constructor Summary
NotNullConstraint()
           
 
Method Summary
 void configure(NotNull 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

NotNullConstraint

public NotNullConstraint()
Method Detail

configure

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

Specified by:
configure in interface ValidationConstraint<NotNull>

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<NotNull>
Returns:
true if validation passes, otherwise false.

validate

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


Copyright © 2003-2013 Jodd Team