jodd.vtor.constraint
Class TimeAfterConstraint

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

public class TimeAfterConstraint
extends java.lang.Object
implements ValidationConstraint<TimeAfter>


Field Summary
protected  jodd.datetime.JDateTime time
           
 
Constructor Summary
TimeAfterConstraint()
           
TimeAfterConstraint(jodd.datetime.JDateTime time)
           
 
Method Summary
 void configure(TimeAfter annotation)
          Configures constraint from associated annotation.
 jodd.datetime.JDateTime getTime()
           
 boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
          Performs validation in context of target object on provided value.
 void setTime(jodd.datetime.JDateTime time)
           
static boolean validate(java.lang.Object value, jodd.datetime.JDateTime then)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

protected jodd.datetime.JDateTime time
Constructor Detail

TimeAfterConstraint

public TimeAfterConstraint()

TimeAfterConstraint

public TimeAfterConstraint(jodd.datetime.JDateTime time)
Method Detail

getTime

public jodd.datetime.JDateTime getTime()

setTime

public void setTime(jodd.datetime.JDateTime time)

configure

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

Specified by:
configure in interface ValidationConstraint<TimeAfter>

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

validate

public static boolean validate(java.lang.Object value,
                               jodd.datetime.JDateTime then)


Copyright © 2003-2013 Jodd Team