Package ninja.validation
Annotation Type Matches
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface Matches
Validates that the parameter matches the given regular expression
-
-
Element Detail
-
regexp
String regexp
The regular expression to match
-
-
-
key
String key
The key for the violation message- Returns:
- The key of the violation message
- Default:
- "validation.matches.violation"
-
-
-
message
String message
Default message if the key isn't found- Returns:
- The default message
- Default:
- "{0} is doesn\'t match the format {1}"
-
-
-
fieldKey
String fieldKey
The key for formatting the field- Returns:
- The key
- Default:
- ""
-
-