Annotation Interface SelfValidating
@Documented
@Target({TYPE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy=SelfValidatingValidator.class)
public @interface SelfValidating
The annotated element has methods annotated by
SelfValidation
.
Those methods are executed on validation.-
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messageThe validation message for this constraint.- Returns:
- the message
- Default:
- ""
-
groups
Class<?>[] groupsThe groups the constraint belongs to.- Returns:
- an array of classes representing the groups
- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payloadThe payloads of this constraint.- Returns:
- the array of payload classes
- Default:
- {}
-