jodd.vtor.constraint
Class TimeBeforeConstraint
java.lang.Object
jodd.vtor.constraint.TimeBeforeConstraint
- All Implemented Interfaces:
- ValidationConstraint<TimeBefore>
public class TimeBeforeConstraint
- extends java.lang.Object
- implements ValidationConstraint<TimeBefore>
|
Field Summary |
protected jodd.datetime.JDateTime |
time
|
|
Method Summary |
void |
configure(TimeBefore 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 |
time
protected jodd.datetime.JDateTime time
TimeBeforeConstraint
public TimeBeforeConstraint()
TimeBeforeConstraint
public TimeBeforeConstraint(jodd.datetime.JDateTime time)
getTime
public jodd.datetime.JDateTime getTime()
setTime
public void setTime(jodd.datetime.JDateTime time)
configure
public void configure(TimeBefore annotation)
- Description copied from interface:
ValidationConstraint
- Configures constraint from associated annotation.
- Specified by:
configure in interface ValidationConstraint<TimeBefore>
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<TimeBefore>
- 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