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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines several@NotEmptyAfterStripannotations on the same element. -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messagelocalized message.- Returns:
- localized validation message
- Default:
- "{jakarta.validation.constraints.NotEmpty.message}"
-
groups
Class<?>[] groupsgroups to use.- Returns:
- array of validation groups
- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payloadpayload whatever.- Returns:
- payload class
- Default:
- {}
-
stripcharacters
String stripcharacterscharacters which should be striped.- Returns:
- characters to strip
- Default:
- " 0"
-