Annotation Interface CodePointLength
@Documented
@Constraint(validatedBy={})
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
public @interface CodePointLength
Validate that the code point length of a character sequence is between min and max included.
It is possible to validate a normalized value by setting the normalization strategy.
- Version:
- 6.0.3
- Author:
- Kazuki Shimizu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Defines several@CodePointLength
annotations on the same element.static enum
Strategy for normalization. -
Optional Element Summary
Optional Elements
-
Element Details
-
min
int min- Default:
0
-
max
int max- Default:
2147483647
-
normalizationStrategy
CodePointLength.NormalizationStrategy normalizationStrategy- Default:
NONE
-
message
String message- Default:
"{org.hibernate.validator.constraints.CodePointLength.message}"
-
groups
Class<?>[] groups- Default:
{}
-
payload
- Default:
{}
-