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
ConstraintTree
public ConstraintTree(ConstraintDescriptorImpl<A> descriptor)
getChildren
public List<ConstraintTree<?>> getChildren()
getDescriptor
public ConstraintDescriptorImpl<A> getDescriptor()
validateConstraints
public <T,U,V> void validateConstraints(Type type,
ValidationContext<T> executionContext,
ValueContext<U,V> valueContext,
List<javax.validation.ConstraintViolation<T>> constraintViolations)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.