org.hibernate.validator.engine
Class ValueContext<T,V>
java.lang.Object
org.hibernate.validator.engine.ValueContext<T,V>
public class ValueContext<T,V>
- extends java.lang.Object
An instance of this class is used to collect all the relevant information for validating a single entity/bean.
- Author:
- Hardy Ferentschik
|
Constructor Summary |
ValueContext(T currentBean,
java.lang.Class<T> currentBeanType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValueContext
public ValueContext(T currentBean,
java.lang.Class<T> currentBeanType)
getLocalExecutionContext
public static <T,V> ValueContext<T,V> getLocalExecutionContext(T value)
getLocalExecutionContext
public static <T,V> ValueContext<T,V> getLocalExecutionContext(java.lang.Class<T> type)
getPropertyPath
public PathImpl getPropertyPath()
getCurrentGroup
public java.lang.Class<?> getCurrentGroup()
getCurrentBean
public T getCurrentBean()
getCurrentBeanType
public java.lang.Class<T> getCurrentBeanType()
getCurrentValidatedValue
public V getCurrentValidatedValue()
setPropertyPath
public void setPropertyPath(PathImpl propertyPath)
setCurrentGroup
public void setCurrentGroup(java.lang.Class<?> currentGroup)
setCurrentValidatedValue
public void setCurrentValidatedValue(V currentValue)
markCurrentPropertyAsIterable
public void markCurrentPropertyAsIterable()
validatingDefault
public boolean validatingDefault()
getElementType
public java.lang.annotation.ElementType getElementType()
setElementType
public void setElementType(java.lang.annotation.ElementType elementType)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.