org.hibernate.validator.ap.checks

## Class SingleValuedChecks

- java.lang.Object
- - org.hibernate.validator.ap.checks.SingleValuedChecks

- All Implemented Interfaces:
    ConstraintChecks

      public class SingleValuedChecks
      extends Object
      implements ConstraintChecks

  A `ConstraintChecks` implementation that simply executes all contained checks against given elements and annotations.
  Author:
    Gunnar Morling

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingleValuedChecks(ConstraintCheck... checks)` Creates a new SingleValuedChecks.

  - ### Method Summary

    Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SingleValuedChecks

          public SingleValuedChecks(ConstraintCheck... checks)

      Creates a new SingleValuedChecks.
      Parameters:
        `checks` - The checks to execute.

  - ### Method Detail

    - #### 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-2014 Red Hat, Inc. All Rights Reserved