Package ninja.validation
Annotation Type IsInteger
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface IsInteger
Validates that the field is an integer. Only needed if you want to customise the validation messages.- Author:
- James Roper
-
-
Field Detail
-
KEY
static final String KEY
-
-
-
MESSAGE
static final String MESSAGE
-
-
Element Detail
-
key
String key
The key for the violation message- Returns:
- The key of the violation message
- Default:
- "validation.is.integer.violation"
-
-
-
message
String message
Default message if the key isn't found- Returns:
- The default message
- Default:
- "{0} must be an integer"
-
-
-
fieldKey
String fieldKey
The key for formatting the field- Returns:
- The key
- Default:
- ""
-
-