Class MultiValuedChecks
java.lang.Object
org.hibernate.validator.ap.internal.checks.MultiValuedChecks
- All Implemented Interfaces:
ConstraintChecks
A
ConstraintChecks
implementation that executes the contained checks
against all parts of given multi-valued annotations.- Author:
- Gunnar Morling
-
Constructor Summary
ConstructorDescriptionMultiValuedChecks
(ConstraintHelper constraintHelper, ConstraintCheck... checks) Creates a new MultiValuedChecks. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Element element, AnnotationMirror annotation) Executes the checks contained within this set against the given element and annotation.
-
Constructor Details
-
MultiValuedChecks
Creates a new MultiValuedChecks.- Parameters:
constraintHelper
- Helper for handling multi-valued constraints.checks
- The checks to execute.
-
-
Method Details
-
execute
Description copied from interface:ConstraintChecks
Executes the checks contained within this set against the given element and annotation.- Specified by:
execute
in interfaceConstraintChecks
- Parameters:
element
- An annotated element.annotation
- The annotation to check.- Returns:
- A set with errors. Will be empty in case all checks passed successfully.
-