org.hibernate.validator.engine
Class ConstraintTree<A extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.hibernate.validator.engine.ConstraintTree<A>

public class ConstraintTree<A extends java.lang.annotation.Annotation>
extends java.lang.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

Constructor Summary
ConstraintTree(ConstraintDescriptorImpl<A> descriptor)
           
 
Method Summary
 java.util.List<ConstraintTree<?>> getChildren()
           
 ConstraintDescriptorImpl<A> getDescriptor()
           
 java.lang.String toString()
           
<T,U,V,E extends javax.validation.ConstraintViolation<T>>
boolean
validateConstraints(ValidationContext<T,E> executionContext, ValueContext<U,V> 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 java.util.List<ConstraintTree<?>> getChildren()

getDescriptor

public final ConstraintDescriptorImpl<A> getDescriptor()

validateConstraints

public final <T,U,V,E extends javax.validation.ConstraintViolation<T>> boolean validateConstraints(ValidationContext<T,E> executionContext,
                                                                                                   ValueContext<U,V> valueContext)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Oracle Corporation. All Rights Reserved.