org.hibernate.validator.ap.checks
Interface ConstraintChecks

All Known Implementing Classes:
MultiValuedChecks, SingleValuedChecks

public interface ConstraintChecks

Represents an ordered set of ConstraintChecks with the ability to execute these checks against given elements and their annotations.

Author:
Gunnar Morling

Method Summary
 Set<ConstraintCheckError> execute(Element element, AnnotationMirror annotation)
          Executes the checks contained within this set against the given element and annotation.
 

Method Detail

execute

Set<ConstraintCheckError> execute(Element element,
                                  AnnotationMirror annotation)
Executes the checks contained within this set against the given element and annotation.

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