public class MultiValuedChecks extends Object implements ConstraintChecks
ConstraintChecks
implementation, that executed the contained checks
against all parts of given multi-valued annotations.Constructor and Description |
---|
MultiValuedChecks(ConstraintHelper constraintHelper,
ConstraintCheck... checks)
Creates a new MultiValuedChecks.
|
Modifier and Type | Method and Description |
---|---|
Set<ConstraintCheckError> |
execute(Element element,
AnnotationMirror annotation)
Executes the checks contained within this set against the given element
and annotation.
|
public MultiValuedChecks(ConstraintHelper constraintHelper, ConstraintCheck... checks)
constraintHelper
- Helper for handling multi-valued constraints.checks
- The checks to execute.public Set<ConstraintCheckError> execute(Element element, AnnotationMirror annotation)
ConstraintChecks
execute
in interface ConstraintChecks
element
- An annotated element.annotation
- The annotation to check.Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved