org.hibernate.validation.engine
Class ConstraintTree<A extends java.lang.annotation.Annotation>
java.lang.Object
org.hibernate.validation.engine.ConstraintTree<A>
public class ConstraintTree<A extends java.lang.annotation.Annotation>
- extends java.lang.Object
Due to constraint conposition a single constraint annotation can lead to a whole constraint tree beeing validated.
This class encapsulates such a tree.
- Author:
- Hardy Ferentschik
|
Constructor Summary |
ConstraintTree(javax.validation.metadata.ConstraintDescriptor<A> descriptor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstraintTree
public ConstraintTree(javax.validation.metadata.ConstraintDescriptor<A> descriptor)
isRoot
public boolean isRoot()
getParent
public ConstraintTree getParent()
getChildren
public java.util.List<ConstraintTree<?>> getChildren()
hasChildren
public boolean hasChildren()
getDescriptor
public javax.validation.metadata.ConstraintDescriptor<A> getDescriptor()
validateConstraints
public <T,U,V> void validateConstraints(java.lang.reflect.Type type,
GlobalExecutionContext<T> executionContext,
LocalExecutionContext<U,V> localExecutionContext,
java.util.List<javax.validation.ConstraintViolation<T>> constraintViolations)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2009. All Rights Reserved.