-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=PatternConstraintValidator.class) @SelfDocumented @ReadMore(caption="What is regular expressions?", link="https://www.regular-expressions.info/") public @interface Pattern
The annotatedStringmust match the specified regular expression. The regular expression follows the Java regular expression conventions seePattern.- Author:
- nedis
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Pattern.Flag[]flagsbooleanoffAllows to disable validation rule if validation inherited from super class.
-
-
-
Element Detail
-
regexp
String regexp
- Returns:
- the regular expression to match
-
-
-
flags
Pattern.Flag[] flags
- Returns:
- array of
Flags considered when resolving the regular expression
- Default:
- {}
-
-