|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.vtor.constraint.MaxConstraint
public class MaxConstraint
| Field Summary | |
|---|---|
protected double |
max
|
| Constructor Summary | |
|---|---|
MaxConstraint()
|
|
MaxConstraint(double max)
|
|
| Method Summary | |
|---|---|
void |
configure(Max annotation)
Configures constraint from associated annotation. |
double |
getMax()
|
boolean |
isValid(ValidationConstraintContext vcc,
java.lang.Object value)
Performs validation in context of target object on provided value. |
void |
setMax(double max)
|
static boolean |
validate(java.lang.Object value,
double max)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double max
| Constructor Detail |
|---|
public MaxConstraint()
public MaxConstraint(double max)
| Method Detail |
|---|
public double getMax()
public void setMax(double max)
public void configure(Max annotation)
ValidationConstraint
configure in interface ValidationConstraint<Max>
public boolean isValid(ValidationConstraintContext vcc,
java.lang.Object value)
ValidationConstraint
isValid in interface ValidationConstraint<Max>true if validation passes, otherwise false.
public static boolean validate(java.lang.Object value,
double max)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||