Module io.helidon.validation
Package io.helidon.validation
Annotation Interface Validation.String.Length
- Enclosing class:
Validation.String
@Target({METHOD,PARAMETER,ANNOTATION_TYPE,TYPE_USE,RECORD_COMPONENT})
@Constraint
public static @interface Validation.String.Length
-
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messageMessage to return instead of the default one of the validator. The message can be a string format, where the first (and only) parameter will be the actual value that is being validated.- Returns:
- message to describe the constraint validation error
- Default:
""
-
min
int minMinimal length of the char sequence. Defaults to zero.- Returns:
- min length
- Default:
0
-
value
int valueMaximal length of the char sequence. Defaults to maximal integer value.- Returns:
- max length
- Default:
2147483647
-