public class SingleValuedChecks extends Object implements ConstraintChecks
ConstraintChecks
implementation that simply executes all
contained checks against given elements and annotations.Constructor and Description |
---|
SingleValuedChecks(ConstraintCheck... checks)
Creates a new SingleValuedChecks.
|
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 SingleValuedChecks(ConstraintCheck... checks)
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