org.hibernate.validator.internal.engine
Class ValueContext<T,V>
java.lang.Object
org.hibernate.validator.internal.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 class, property or
method invocation.
- Author:
- Hardy Ferentschik, Gunnar Morling
|
Constructor Summary |
protected |
ValueContext(T currentBean,
java.lang.Class<T> currentBeanType,
PathImpl propertyPath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValueContext
protected ValueContext(T currentBean,
java.lang.Class<T> currentBeanType,
PathImpl propertyPath)
getLocalExecutionContext
public static <T,V> ValueContext<T,V> getLocalExecutionContext(T value,
PathImpl propertyPath)
getLocalExecutionContext
public static <T,V> ValueContext<T,V> getLocalExecutionContext(T value,
PathImpl propertyPath,
int parameterIndex,
java.lang.String parameterName)
getLocalExecutionContext
public static <T,V> ValueContext<T,V> getLocalExecutionContext(T value,
java.lang.Class<T> rootBeanClass,
PathImpl propertyPath,
int parameterIndex,
java.lang.String parameterName)
getLocalExecutionContext
public static <T,V> ValueContext<T,V> getLocalExecutionContext(java.lang.Class<T> type,
PathImpl propertyPath)
getPropertyPath
public final PathImpl getPropertyPath()
getCurrentGroup
public final java.lang.Class<?> getCurrentGroup()
getCurrentBean
public final T getCurrentBean()
getCurrentBeanType
public final java.lang.Class<T> getCurrentBeanType()
getParameterIndex
public java.lang.Integer getParameterIndex()
setParameterIndex
public void setParameterIndex(int parameterIndex)
getParameterName
public java.lang.String getParameterName()
setParameterName
public void setParameterName(java.lang.String parameterName)
getCurrentValidatedValue
public final V getCurrentValidatedValue()
setPropertyPath
public final void setPropertyPath(PathImpl propertyPath)
appendNode
public final void appendNode(java.lang.String node)
markCurrentPropertyAsIterable
public final void markCurrentPropertyAsIterable()
setKey
public final void setKey(java.lang.Object key)
setIndex
public final void setIndex(java.lang.Integer index)
setCurrentGroup
public final void setCurrentGroup(java.lang.Class<?> currentGroup)
setCurrentValidatedValue
public final void setCurrentValidatedValue(V currentValue)
validatingDefault
public final boolean validatingDefault()
getElementType
public final java.lang.annotation.ElementType getElementType()
setElementType
public final void setElementType(java.lang.annotation.ElementType elementType)
getTypeOfAnnotatedElement
public final java.lang.reflect.Type getTypeOfAnnotatedElement()
setTypeOfAnnotatedElement
public final void setTypeOfAnnotatedElement(java.lang.reflect.Type typeOfAnnotatedElement)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.