Package javax.validation.constraints
Annotation Type Pattern
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) @Documented @Constraint(validatedBy={}) public @interface Pattern
Constraint to verify that the validated field, parameter, etc matches the given regexp pattern. The pattern format is as specified inPattern
.- Version:
- $Rev$ $Date$
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
regexp
-
-
-
-
flags
Pattern.Flag[] flags
- Default:
- {}
-
-
-
payload
java.lang.Class<? extends Payload>[] payload
- Default:
- {}
-
-