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