@Documented @Inherited @Retention(value=RUNTIME) @Target(value=FIELD) public @interface Constraints
© Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Fields and Description |
|---|---|
static String |
NULL
A constant to represent
null value as default. |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
confirm
The name of a field used to confirm the value entered in this field.
|
String |
regex
The regular expression to be applied to check validity of the field.
|
Constraints.Value |
value
The constraint to be applied to the field.
|
public static final String NULL
null value as default.public abstract Constraints.Value value
public abstract String confirm
password1 and the additional field in which the confirmation
is entered is named password2 this value would be set
to password2.