Annotation Interface Pattern
@Documented
@Retention(CLASS)
@Target({METHOD,FIELD,PARAMETER})
@ValidatedBy(PatternValidatorFactory.class)
public @interface Pattern
Validates that
String or CharSequence matches RegEx-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
- Returns:
- RegEx pattern
-
-
-
flags
int flags- Returns:
Pattern.flags()for RegEx- See Also:
- Default:
- 0
-