Package org.hibernate.validator.ap.internal.checks
package org.hibernate.validator.ap.internal.checks
This package contains check implementations used by the annotation processor to verify constraint declarations.
These checks are registered in the ConstraintCheckFactory
responsible to return the corresponding check in function of the processed element and annotation.
This factory is especially used by the annotation processor implementation to get the checks
corresponding to an annotated element.
-
ClassDescriptionAbstract base class for
ConstraintCheck
implementations.Checks, that only constraint annotation types are annotated with other constraint annotations ("constraint composition"), but not non-constraint annotations.Checks, that each constraint annotation type declares the members message(), groups() and payload() as defined by the BV spec.Implementations represent checks, which determine whether a given constraint annotation is allowed at a given element.A factory in charge of determining theConstraintCheck
s required for the validation of annotations at given elements.The result of the execution of aConstraintCheck
.Represents an ordered set ofConstraintCheck
s with the ability to execute these checks against given elements and their annotations.Checks, that for each constraint annotation type, which is not a composed constraint, a validator implementation is specified using theConstraint
annotation.Checks that a cross-parameter constraint is defined correctly with reference to the specifications.Checks whether a given element is a valid getter method.Checks that theGroupSequenceProvider
annotation definition is valid.Checks whether a method is correctly annotated with a valid constraint involving the return type or the method parameters (cross-parameters).Checks, that there is no mixed usage of direct annotation and its list container.AConstraintChecks
implementation that executes the contained checks against all parts of given multi-valued annotations.Validates that the given element is not of a primitive type.Checks, thatRetentionPolicy.RUNTIME
is declared for constraint annotation types.AConstraintChecks
implementation that simply executes all contained checks against given elements and annotations.Checks, that the given element is not a static element.Checks, that at least one of theElementType
s FIELD, METHOD, TYPE or ANNOTATION_TYPE is specified using theTarget
meta-annotation for constraint annotation types.Checks, that constraint annotations are only specified at elements of a type supported by the constraints.