Package jakarta.validation.constraints
Annotation Type Pattern
- 
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @Documented @Constraint(validatedBy={}) public @interface PatternThe annotatedCharSequencemust match the specified regular expression. The regular expression follows the Java regular expression conventions seePattern.Accepts
CharSequence.nullelements are considered valid.- Author:
 - Emmanuel Bernard
 
 
- 
- 
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Stringregexp 
 - 
 
- 
- 
- 
flags
Pattern.Flag[] flags
- Returns:
 - array of 
Flags considered when resolving the regular expression 
- Default:
 - {}
 
 
 - 
 
- 
- 
payload
java.lang.Class<? extends Payload>[] payload
- Returns:
 - the payload associated to the constraint
 
- Default:
 - {}
 
 
 - 
 
 -