|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface MaxValueChecks if annotated method returns a value with no more than the maximum value. Can be annotated on methods returning:
Also supports:
| Optional Element Summary | |
|---|---|
java.lang.String[] |
applyToGroups
Specify for which groups this annotation must be applied. |
java.lang.String |
bigValue
Set the maximum value for BigInteger / BigDecimal. |
java.lang.String |
customCodeMaxValue
Optional custom code (property from a properties file) if the maxvalue is violated. |
java.lang.String |
customCodeNotNumeric
Optional custom code (property from a properties file) if the not numeric is violated. |
boolean |
globalMessage
If this annotation's message must be added as global message instead of real validation path. |
double |
value
The maximum value the method annotated should return. |
public abstract double value
Defaults to nothing (0.0 by java specs).
public abstract java.lang.String bigValue
public abstract java.lang.String[] applyToGroups
Defaults to JvGroup.GROUP_APPLY_ALL
public abstract java.lang.String customCodeMaxValue
This way you can override the default message if needed.
public abstract java.lang.String customCodeNotNumeric
This way you can override the default message if needed.
public abstract boolean globalMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||