|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Length
Validate the length of a String property.
You can only apply this to String properties.
Optional Element Summary | |
---|---|
int |
max
The maximum length of a String. |
int |
min
The minimum length of a String. |
public abstract int min
Checks that the string length is greater than or equal to min.
public abstract int max
Checks that the string length is less than or equal to max.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |