|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface MinValueChecks if annotated method returns a value with given minimum 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 minimum value for BigInteger / BigDecimal. |
java.lang.String |
customCodeMinValue
Optional custom code (property from a properties file) if the minvalue 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 minimum 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
public abstract java.lang.String customCodeMinValue
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 | ||||||||