org.hibernate.validator.engine
Class ConstraintTree<A extends Annotation>
java.lang.Object
org.hibernate.validator.engine.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
ConstraintTree
public ConstraintTree(ConstraintDescriptorImpl<A> descriptor)
getChildren
public final List<ConstraintTree<?>> getChildren()
getDescriptor
public final ConstraintDescriptorImpl<A> getDescriptor()
validateConstraints
public final <T,U,V,E extends ConstraintViolation<T>> boolean validateConstraints(ValidationContext<T,E> executionContext,
ValueContext<U,V> valueContext)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved