Annotation Type Matches
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description @Regex java.lang.String
value
Pattern to test string value against.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
failureMessage
Message to throw in an exception when a match fails.int
flags
Flags to pass to the compiledPattern
.
-
-
-
Element Detail
-
value
@Regex java.lang.String value
Pattern to test string value against.- Returns:
- pattern to test against
- Since:
- 4.0.0
-
-
-
flags
int flags
Flags to pass to the compiledPattern
.- Returns:
- the regex pattern parsing flags
- Since:
- 4.1.0
- See Also:
for the bitflags accepted here
- Default:
- 0
-
-
-
failureMessage
java.lang.String failureMessage
Message to throw in an exception when a match fails.This message will be formatted as a MessageFormat with two parameters:
- the input string
- the pattern being matched
- Returns:
- message format.
- Since:
- 4.0.0
- Default:
- ""
-
-