|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value={METHOD,FIELD}) @ConstraintValidator(value=PatternValidator.class) @Retention(value=RUNTIME) public @interface Pattern
Asserts that the field or method matches the given regex pattern when validated. This regex pattern should be written so that it has the same functionality in Java and JavaScript.
Optional Element Summary | |
---|---|
java.lang.String[] |
groups
Groups that the constraint belongs to |
java.lang.String |
message
Message that is returned on validation failure. |
java.lang.String |
pattern
String value of the regex pattern to match against. |
public abstract java.lang.String message
public abstract java.lang.String[] groups
public abstract java.lang.String pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |