Annotation Type ConditionalValidate
@Constraint(validatedBy=com.github.microtweak.conditionalvalidator.DelegatedConditionalConstraintValidator.class)
@Documented
@Target(TYPE)
@Retention(RUNTIME)
public @interface ConditionalValidate
When a class is annotated with @ConditionalValidate, all of its fields can be annotated with any conditional constraint.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]
Enums that will be available during the evaluation of the expression of each conditional constraintClass<?>[]
Deprecated.Ignored/not used by ConditionalValidation.Deprecated.Ignored/not used by ConditionalValidation.Class<? extends javax.validation.Payload>[]
Deprecated.Ignored/not used by ConditionalValidation.
-
Element Details
-
contextClasses
Class<?>[] contextClassesEnums that will be available during the evaluation of the expression of each conditional constraint- Default:
- {}
-
message
Deprecated.Ignored/not used by ConditionalValidation. But Bean Validation requires that every constraint has the "message" attribute.- Default:
- ""
-
groups
Deprecated.Ignored/not used by ConditionalValidation. But Bean Validation requires that every constraint has the "groups" attribute.- Default:
- {}
-
payload
Deprecated.Ignored/not used by ConditionalValidation. But Bean Validation requires that every constraint has the "payload" attribute.- Default:
- {}
-