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 a ConstraintValidator implementation class that has a default constructor.
    Since:
    2.1
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends ConstraintValidator<? extends java.lang.annotation.Annotation>> value
      ConstraintValidator class that implements the validation logic for the annotated constraint annotation.
    • Element Detail

      • value

        java.lang.Class<? extends ConstraintValidator<? extends java.lang.annotation.Annotation>> value
        ConstraintValidator class that implements the validation logic for the annotated constraint annotation.