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)
ConstraintChecksexecute in interface ConstraintCheckselement - An annotated element.annotation - The annotation to check.Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved