public class ValueContext<T,V> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueContext.ValueState<V> |
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, Class<T> rootBeanType, Validatable validatable, PathImpl propertyPath)
public static <T,V> ValueContext<T,V> getLocalExecutionContext(ExecutableParameterNameProvider parameterNameProvider, Class<T> currentBeanType, BeanMetaData<?> currentBeanMetaData, PathImpl propertyPath)
public final PathImpl getPropertyPath()
public final Class<?> getCurrentGroup()
public final T getCurrentBean()
public final BeanMetaData<T> getCurrentBeanMetaData()
public Validatable getCurrentValidatable()
public final Object getCurrentValidatedValue()
public final void appendNode(Cascadable node)
public final void appendNode(ConstraintLocation location)
public final void appendTypeParameterNode(String nodeName)
public final void markCurrentPropertyAsIterable()
public final void markCurrentPropertyAsIterableAndSetKey(Object key)
public final void markCurrentPropertyAsIterableAndSetIndex(Integer index)
public final void setTypeParameter(Class<?> containerClass, 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(Class<?> currentGroup)
public final void setCurrentValidatedValue(V currentValue)
public final boolean validatingDefault()
public final ElementType getElementType()
public final void setElementType(ElementType elementType)
public final ValueContext.ValueState<V> getCurrentValueState()
public final void resetValueState(ValueContext.ValueState<V> valueState)
public Object getValue(Object parent, ConstraintLocation location)
Copyright © 2020 JBoss by Red Hat. All rights reserved.