org.hibernate.validator.internal.engine.constraintvalidation

## Class ConstraintTree<A extends Annotation>

- java.lang.Object
- - org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree<A>

-     public class ConstraintTree<A extends Annotation>
      extends Object

  Due to constraint composition a single constraint annotation can lead to a whole constraint tree being validated. This class encapsulates such a tree.
  Author:
    Hardy Ferentschik, Federico Mancini, Dag Hovland, Kevin Pollet (C) 2012 SERLI

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstraintTree(ConstraintDescriptorImpl<A> descriptor)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<ConstraintTree<?>>` | `getChildren()`
    `ConstraintDescriptorImpl<A>` | `getDescriptor()`
    `String` | `toString()`
    `<T> boolean` | `validateConstraints(ValidationContext<T> executionContext, ValueContext<?,?> valueContext)`

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

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

- - ### Constructor Detail

    - #### ConstraintTree

          public ConstraintTree(ConstraintDescriptorImpl<A> descriptor)

  - ### Method Detail

    - #### getChildren

          public final List<ConstraintTree<?>> getChildren()

    - #### getDescriptor

          public final ConstraintDescriptorImpl<A> getDescriptor()

    - #### validateConstraints

          public final <T> boolean validateConstraints(ValidationContext<T> executionContext,
                                        ValueContext<?,?> valueContext)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved