public class TimeBeforeConstraint extends java.lang.Object implements ValidationConstraint<TimeBefore>
| Modifier and Type | Field and Description |
|---|---|
protected jodd.datetime.JDateTime |
time |
| Constructor and Description |
|---|
TimeBeforeConstraint() |
TimeBeforeConstraint(jodd.datetime.JDateTime time) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public TimeBeforeConstraint()
public TimeBeforeConstraint(jodd.datetime.JDateTime time)
public jodd.datetime.JDateTime getTime()
public void setTime(jodd.datetime.JDateTime time)
public void configure(TimeBefore annotation)
ValidationConstraintconfigure in interface ValidationConstraint<TimeBefore>public boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
ValidationConstraintisValid in interface ValidationConstraint<TimeBefore>true if validation passes, otherwise false.public static boolean validate(java.lang.Object value,
jodd.datetime.JDateTime then)
Copyright © 2003-2013 Jodd Team