public class ValueContext<T,V> extends Object
Modifier | Constructor and Description |
---|---|
protected |
ValueContext(T currentBean,
Class<T> currentBeanType,
PathImpl propertyPath) |
Modifier and Type | Method and Description |
---|---|
void |
appendNode(String node)
Adds a new node with the specified name to the current property path.
|
T |
getCurrentBean() |
Class<T> |
getCurrentBeanType() |
Class<?> |
getCurrentGroup() |
V |
getCurrentValidatedValue() |
ElementType |
getElementType() |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(Class<T> type,
PathImpl propertyPath) |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(T value,
PathImpl propertyPath) |
static <T,V> ValueContext<T,V> |
getLocalExecutionContext(T value,
PathImpl propertyPath,
int parameterIndex,
String parameterName) |
Integer |
getParameterIndex() |
String |
getParameterName() |
PathImpl |
getPropertyPath() |
Type |
getTypeOfAnnotatedElement() |
void |
markCurrentPropertyAsIterable() |
void |
setCurrentGroup(Class<?> currentGroup) |
void |
setCurrentValidatedValue(V currentValue) |
void |
setElementType(ElementType elementType) |
void |
setIndex(Integer index) |
void |
setKey(Object key) |
void |
setParameterIndex(int parameterIndex) |
void |
setParameterName(String parameterName) |
void |
setPropertyPath(PathImpl propertyPath)
Sets the property path to the match the currently validated value.
|
void |
setTypeOfAnnotatedElement(Type typeOfAnnotatedElement) |
String |
toString() |
boolean |
validatingDefault() |
public static <T,V> ValueContext<T,V> getLocalExecutionContext(T value, PathImpl propertyPath)
public static <T,V> ValueContext<T,V> getLocalExecutionContext(T value, PathImpl propertyPath, int parameterIndex, String parameterName)
public static <T,V> ValueContext<T,V> getLocalExecutionContext(Class<T> type, PathImpl propertyPath)
public final PathImpl getPropertyPath()
public final Class<?> getCurrentGroup()
public final T getCurrentBean()
public Integer getParameterIndex()
public void setParameterIndex(int parameterIndex)
public String getParameterName()
public void setParameterName(String parameterName)
public final V getCurrentValidatedValue()
public final void setPropertyPath(PathImpl propertyPath)
propertyPath
- Sets the new property path.public final void appendNode(String node)
node
- the name of the new node. Cannot be null
.public final void markCurrentPropertyAsIterable()
public final void setKey(Object key)
public final void setIndex(Integer index)
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 Type getTypeOfAnnotatedElement()
public final void setTypeOfAnnotatedElement(Type typeOfAnnotatedElement)
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved