Class SingleValuedChecks
java.lang.Object
org.hibernate.validator.ap.internal.checks.SingleValuedChecks
- All Implemented Interfaces:
ConstraintChecks
A
ConstraintChecks implementation that simply executes all
contained checks against given elements and annotations.- Author:
- Gunnar Morling
-
Constructor Summary
ConstructorsConstructorDescriptionSingleValuedChecks(ConstraintCheck... checks) Creates a new SingleValuedChecks. -
Method Summary
Modifier and TypeMethodDescriptionexecute(Element element, AnnotationMirror annotation) Executes the checks contained within this set against the given element and annotation.
-
Constructor Details
-
SingleValuedChecks
Creates a new SingleValuedChecks.- Parameters:
checks- The checks to execute.
-
-
Method Details
-
execute
Description copied from interface:ConstraintChecksExecutes the checks contained within this set against the given element and annotation.- Specified by:
executein 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.
-