Annotation Type I18nStringSize
@Documented @Constraint(validatedBy=I18nStringSizeValidator.class) @Target({FIELD,TYPE_USE}) @Retention(RUNTIME) public @interface I18nStringSize
Annotation for i18n String (de/en Strings).
- Author:
- Daniel Katzberg
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
I18nStringSize.List
Defines severalI18nStringSize
annotations on the same element. -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>[]
groups
This contains groups.int
max
Get the max length of theI18nString
.String
message
Defines the default error message.int
min
Get the min length of theI18nString
.Class<? extends javax.validation.Payload>[]
payload
This method contains the payload.
-
Element Details
-
message
String messageDefines the default error message.- Default:
- "eu.dzhw.fdz.metadatamanagement.domain.validation.i18nstringsize.message"
-
groups
Class<?>[] groupsThis contains groups.- Default:
- {}
-
payload
Class<? extends javax.validation.Payload>[] payloadThis method contains the payload.- Default:
- {}
-
max
int maxGet the max length of theI18nString
.- Returns:
- size the element must be equal or lower to.
- Default:
- 2147483647
-
min
int minGet the min length of theI18nString
.- Returns:
- size the element must be equal or higher to.
- Default:
- 0
-