|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,PARAMETER}) @Documented public @interface StringValidation
String validation rules
Optional Element Summary | |
---|---|
boolean |
bindMessages
true if the any error message should be bound to this field, false to use unbound Message s |
java.lang.String[] |
except
the list of events in which this validation does NOT place, empty for none. |
java.lang.String |
mask
the expected pattern |
boolean |
maskCaseInsensitive
true if the mask is case insensitive, defaults false |
int |
maxLength
maximum length allowed, -1 if none |
java.lang.String |
message
the key of the message that will be displayed if the validator does not pass, leave empty for default |
int |
minLength
minimum length required, -1 if none |
java.lang.String[] |
on
the list of events in which this validation takes place, empty for all. |
java.lang.String |
propertyPath
if provided, applies to the property path instead of the annotated property |
public abstract java.lang.String propertyPath
public abstract java.lang.String[] on
public abstract java.lang.String[] except
public abstract java.lang.String message
public abstract boolean bindMessages
Message
s
public abstract int minLength
public abstract int maxLength
public abstract java.lang.String mask
public abstract boolean maskCaseInsensitive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |