public class ValueContext<T,V> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueContext.ValueState<V> |
public final PathImpl getPropertyPath()
public final Class<?> getCurrentGroup()
public final T getCurrentBean()
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 ConstraintLocation.ConstraintLocationKind getConstraintLocationKind()
public final void setConstraintLocationKind(ConstraintLocation.ConstraintLocationKind constraintLocationKind)
public final ValueContext.ValueState<V> getCurrentValueState()
public final void resetValueState(ValueContext.ValueState<V> valueState)
public Object getValue(Object parent, ConstraintLocation location)
Copyright © 2007-2020 Red Hat, Inc. All Rights Reserved