org.hibernate.validator.ap.checks
Class MultiValuedChecks
java.lang.Object
org.hibernate.validator.ap.checks.MultiValuedChecks
- All Implemented Interfaces:
- ConstraintChecks
public class MultiValuedChecks
- extends Object
- implements ConstraintChecks
A ConstraintChecks
implementation, that executed the contained checks
against all parts of given multi-valued annotations.
- Author:
- Gunnar Morling
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiValuedChecks
public MultiValuedChecks(ConstraintHelper constraintHelper,
ConstraintCheck... checks)
- Creates a new MultiValuedChecks.
- Parameters:
constraintHelper
- Helper for handling multi-valued constraints.checks
- The checks to execute.
execute
public Set<ConstraintCheckError> execute(Element element,
AnnotationMirror annotation)
- Description copied from interface:
ConstraintChecks
- Executes the checks contained within this set against the given element
and annotation.
- Specified by:
execute
in interface ConstraintChecks
- Parameters:
element
- An annotated element.annotation
- The annotation to check.
- Returns:
- A set with errors. Will be empty in case all checks passed
successfully.
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved