@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=Pattern.List.class) @Documented @Constraint(validatedBy={}) public @interface Pattern
CharSequence
must match the specified regular expression.
The regular expression follows the Java regular expression conventions
see Pattern
.
Accepts CharSequence
. null
elements are considered valid.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
regexp |
public abstract java.lang.String regexp
public abstract Pattern.Flag[] flags
Flag
s considered when resolving the regular expressionpublic abstract java.lang.String message
public abstract java.lang.Class<?>[] groups
public abstract java.lang.Class<? extends Payload>[] payload