Module io.helidon.validation
Package io.helidon.validation
Annotation Interface Validation.String.Pattern
- Enclosing class:
Validation.String
@Target({METHOD,PARAMETER,ANNOTATION_TYPE,TYPE_USE,RECORD_COMPONENT})
@Constraint
public static @interface Validation.String.Pattern
The value must match the given regular expression.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of regular expression flags, that maps to the correct constants onPattern, such asPattern.CASE_INSENSITIVE. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionPattern flags to use.Message to return instead of the default one of the validator.
-
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:
""
-
value
String valueThe regular expression.- Returns:
- regular expression to match
-
flags
Validation.String.Pattern.Flag[] flagsPattern flags to use.- Returns:
- flags to add when creating the pattern
- Default:
{}
-