Class ConstraintDefinitionContribution<A extends Annotation>


  • public class ConstraintDefinitionContribution<A extends Annotation>
    extends Object
    Type-safe wrapper class for a constraint annotation and its potential list of constraint validators.
    Author:
    Hardy Ferentschik
    • Constructor Detail

    • Method Detail

      • getConstraintType

        public Class<A> getConstraintType()
        Returns the constraint annotation type for which this instance provides constraint validator instances.
      • getValidatorDescriptors

        public List<ConstraintValidatorDescriptor<A>> getValidatorDescriptors()
        Returns a list of constraint validator descriptors for the constraint type of this instance.
      • includeExisting

        public boolean includeExisting()
        Whether or not the existing constraint validators should be kept or not.
        Returns:
        true if the existing constraint validators for the constraint type wrapped by this instance should be kept, false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object