jodd.vtor.constraint
Class TimeAfterConstraint
java.lang.Object
jodd.vtor.constraint.TimeAfterConstraint
- All Implemented Interfaces:
- ValidationConstraint<TimeAfter>
public class TimeAfterConstraint
- extends Object
- implements ValidationConstraint<TimeAfter>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
time
protected JDateTime time
TimeAfterConstraint
public TimeAfterConstraint()
TimeAfterConstraint
public TimeAfterConstraint(JDateTime time)
getTime
public JDateTime getTime()
setTime
public void setTime(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,
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(Object value,
JDateTime then)