public class ValueContext<T,V>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueContext.ValueState<V> |
Modifier and Type | Method and Description |
---|---|
void |
appendNode(Cascadable node) |
void |
appendNode(ConstraintLocation location) |
void |
appendTypeParameterNode(java.lang.String nodeName) |
T |
getCurrentBean() |
BeanMetaData<T> |
getCurrentBeanMetaData() |
java.lang.Class<T> |
getCurrentBeanType() |
java.lang.Class<?> |
getCurrentGroup() |
Validatable |
getCurrentValidatable() |
java.lang.Object |
getCurrentValidatedValue()
Returns the current value to be validated.
|
ValueContext.ValueState<V> |
getCurrentValueState() |
java.lang.annotation.ElementType |
getElementType() |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(BeanMetaDataManager beanMetaDataManager,
ExecutableParameterNameProvider parameterNameProvider,
java.lang.Class<T> rootBeanType,
Validatable validatable,
PathImpl propertyPath) |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(BeanMetaDataManager beanMetaDataManager,
ExecutableParameterNameProvider parameterNameProvider,
T value,
Validatable validatable,
PathImpl propertyPath) |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(ExecutableParameterNameProvider parameterNameProvider,
java.lang.Class<T> currentBeanType,
BeanMetaData<?> currentBeanMetaData,
PathImpl propertyPath) |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(ExecutableParameterNameProvider parameterNameProvider,
T value,
BeanMetaData<?> currentBeanMetaData,
PathImpl propertyPath) |
PathImpl |
getPropertyPath() |
java.lang.Object |
getValue(java.lang.Object parent,
ConstraintLocation location) |
void |
markCurrentPropertyAsIterable() |
void |
markCurrentPropertyAsIterableAndSetIndex(java.lang.Integer index) |
void |
markCurrentPropertyAsIterableAndSetKey(java.lang.Object key) |
void |
resetValueState(ValueContext.ValueState<V> valueState) |
void |
setCurrentGroup(java.lang.Class<?> currentGroup) |
void |
setCurrentValidatedValue(V currentValue) |
void |
setElementType(java.lang.annotation.ElementType elementType) |
void |
setTypeParameter(java.lang.Class<?> containerClass,
java.lang.Integer typeParameterIndex)
Sets the container element information.
|
java.lang.String |
toString() |
boolean |
validatingDefault() |
public static <T,V> ValueContext<T,V> getLocalExecutionContext(BeanMetaDataManager beanMetaDataManager, ExecutableParameterNameProvider parameterNameProvider, T value, Validatable validatable, PathImpl propertyPath)
public static <T,V> ValueContext<T,V> getLocalExecutionContext(ExecutableParameterNameProvider parameterNameProvider, T value, BeanMetaData<?> currentBeanMetaData, PathImpl propertyPath)
public static <T,V> ValueContext<T,V> getLocalExecutionContext(BeanMetaDataManager beanMetaDataManager, ExecutableParameterNameProvider parameterNameProvider, java.lang.Class<T> rootBeanType, Validatable validatable, PathImpl propertyPath)
public static <T,V> ValueContext<T,V> getLocalExecutionContext(ExecutableParameterNameProvider parameterNameProvider, java.lang.Class<T> currentBeanType, BeanMetaData<?> currentBeanMetaData, PathImpl propertyPath)
public final PathImpl getPropertyPath()
public final java.lang.Class<?> getCurrentGroup()
public final T getCurrentBean()
public final java.lang.Class<T> getCurrentBeanType()
public final BeanMetaData<T> getCurrentBeanMetaData()
public Validatable getCurrentValidatable()
public final java.lang.Object getCurrentValidatedValue()
public final void appendNode(Cascadable node)
public final void appendNode(ConstraintLocation location)
public final void appendTypeParameterNode(java.lang.String nodeName)
public final void markCurrentPropertyAsIterable()
public final void markCurrentPropertyAsIterableAndSetKey(java.lang.Object key)
public final void markCurrentPropertyAsIterableAndSetIndex(java.lang.Integer index)
public final void setTypeParameter(java.lang.Class<?> containerClass, java.lang.Integer typeParameterIndex)
containerClass
- the class of the containertypeParameterIndex
- the index of the actual type parameterTypeVariables.getContainerClass(TypeVariable)
,
TypeVariables.getActualTypeParameter(TypeVariable)
,
AnnotatedObject
,
ArrayElement
public final void setCurrentGroup(java.lang.Class<?> currentGroup)
public final void setCurrentValidatedValue(V currentValue)
public final boolean validatingDefault()
public final java.lang.annotation.ElementType getElementType()
public final void setElementType(java.lang.annotation.ElementType elementType)
public final ValueContext.ValueState<V> getCurrentValueState()
public final void resetValueState(ValueContext.ValueState<V> valueState)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getValue(java.lang.Object parent, ConstraintLocation location)
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved