|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Documented @Retention(value=SOURCE) public @interface JapanoValidation
Can be used on action parameters and fields to specify which values are valid for that parameter or field. One element has to be defined.
Optional Element Summary | |
---|---|
java.lang.String |
custom
Full class name of a Validator implementation. |
java.lang.String |
errorMessage
Error message to display in case of a validation failure. |
int[] |
limit
An array containing lower and upper limit. |
java.lang.String |
regex
Regular Expression to match the value against. |
boolean |
required
If true the value must be present to be valid. |
java.lang.String |
requiredMessage
Error message to display when the validated value is required but not present. |
public abstract int[] limit
public abstract java.lang.String regex
public abstract java.lang.String custom
Validator
implementation.
Either limit, regex or custom must be given.
public abstract java.lang.String errorMessage
public abstract boolean required
true
the value must be present to be valid.
public abstract java.lang.String requiredMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |