Class ConstraintCheckFactory

java.lang.Object
org.hibernate.validator.ap.internal.checks.ConstraintCheckFactory

public class ConstraintCheckFactory extends Object
A factory in charge of determining the ConstraintChecks required for the validation of annotations at given elements.
Author:
Gunnar Morling
  • Constructor Details

  • Method Details

    • getConstraintChecks

      public ConstraintChecks getConstraintChecks(Element annotatedElement, AnnotationMirror annotation)
      Returns those checks that have to be performed to validate the given annotation at the given element. In case no checks have to be performed (e.g. because the given annotation is no constraint annotation) an empty ConstraintChecks instance will be returned. It's therefore always safe to operate on the returned object.
      Parameters:
      annotatedElement - An annotated element, e.g. a type declaration or a method.
      annotation - An annotation.
      Returns:
      The checks to be performed to validate the given annotation at the given element.