|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Constraint(validatedBy={})
public @interface Pattern
The annotated String must match the following regular expression.
The regular expression follows the Java regular expression conventions
see java.util.regex.Pattern.
Accepts String. null elements are considered valid.
| Required Element Summary | |
|---|---|
java.lang.String |
regexp
regular expression to match |
| Optional Element Summary | |
|---|---|
Pattern.Flag[] |
flags
Flags considered when resolving the regular expression |
java.lang.Class<?>[] |
groups
groups the constraint belongs to |
java.lang.String |
message
error message template |
| Element Detail |
|---|
public abstract java.lang.String regexp
public abstract Pattern.Flag[] flags
public abstract java.lang.String message
public abstract java.lang.Class<?>[] groups
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||