org.hibernate.validator.engine
Class ValueContext<T,V>

java.lang.Object
  extended by 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

Constructor Summary
ValueContext(T currentBean, Class<T> currentBeanType)
           
 
Method Summary
 T getCurrentBean()
           
 Class<T> getCurrentBeanType()
           
 Class<?> getCurrentGroup()
           
 V getCurrentValidatedValue()
           
 ElementType getElementType()
           
static
<T,V> ValueContext<T,V>
getLocalExecutionContext(Class<T> type)
           
static
<T,V> ValueContext<T,V>
getLocalExecutionContext(T value)
           
 PathImpl getPropertyPath()
           
 void markCurrentPropertyAsIterable()
           
 void setCurrentGroup(Class<?> currentGroup)
           
 void setCurrentValidatedValue(V currentValue)
           
 void setElementType(ElementType elementType)
           
 void setPropertyPath(PathImpl propertyPath)
           
 String toString()
           
 boolean validatingDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueContext

public ValueContext(T currentBean,
                    Class<T> currentBeanType)
Method Detail

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 © 2012 Oracle Corporation. All Rights Reserved.