Annotation Type LimitCharset
-
@Documented @Constraint(validatedBy=LimitCharsetValidator.class) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) public @interface LimitCharset
The annotated element must contain only characters which are allowed in the given charset.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
Thecharsetmust be given as parameter.- Author:
- Manfred Tremmel
-
-
Element Detail
-
charset
String charset
name of the charset to check against.- Returns:
- charset to check against
-
-
-
message
String message
localized messages.- Returns:
- localized validation message
- Default:
- "{de.knightsoftnet.validators.shared.LimitCharset.message}"
-
-
-
groups
Class<?>[] groups
groups to use.- Returns:
- array of validation groups
- Default:
- {}
-
-
-
payload
Class<? extends javax.validation.Payload>[] payload
payload whatever.- Returns:
- payload class
- Default:
- {}
-
-