Annotation Type NotEmptyAfterStrip
-
@Documented @Constraint(validatedBy=NotEmptyAfterStripValidator.class) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) public @interface NotEmptyAfterStrip
The annotated element must not be null or empty after strip. There is one parameter option:- characters which should be striped (option
stripcharacters, default " 0")
- Author:
- Manfred Tremmel
- characters which should be striped (option
-
-
Element Detail
-
message
String message
localized message.- Returns:
- localized validation message
- Default:
- "{javax.validation.constraints.NotEmpty.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:
- {}
-
-
-
stripcharacters
String stripcharacters
characters which should be striped.- Returns:
- characters to strip
- Default:
- " 0"
-
-