Module jp.ecuacion.lib.core
Annotation Interface PatternWithDescription
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(PatternWithDescriptionList.class)
@Documented
@Constraint(validatedBy=PatternWithDescriptionValidator.class)
public @interface PatternWithDescription
Checks if a string matches specified regular expression.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalPatternannotations on the same element. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionStores description ID to add description string to the message to users.Stores a regular expression. -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messageReturns message ID.- Returns:
- message ID
- Default:
"{jp.ecuacion.validation.constraints.PatternWithDescription.message}"
-
groups
Class<?>[] groupsReturns groups.- Returns:
- groups
- Default:
{}
-
payload
Class<? extends jakarta.validation.Payload>[] payloadReturns payload.- Returns:
- payload
- Default:
{}
-
regexp
String regexpStores a regular expression.- Returns:
- regular expression
-
descriptionId
String descriptionIdStores description ID to add description string to the message to users.- Returns:
- description ID
-