Annotation Type Constraint
-
@Documented @Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Constraint
Meta annotation to mark an annotation as a validation constraint. This annotation must specify aConstraintValidator
implementation class that has a default constructor.- Since:
- 2.1
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends ConstraintValidator<? extends Annotation>>
value
ConstraintValidator
class that implements the validation logic for the annotated constraint annotation.
-
-
-
Element Detail
-
value
Class<? extends ConstraintValidator<? extends Annotation>> value
ConstraintValidator
class that implements the validation logic for the annotated constraint annotation.
-
-