Class ValueContext<T,V>
java.lang.Object
org.hibernate.validator.internal.engine.valuecontext.ValueContext<T,V>
- Direct Known Subclasses:
BeanValueContext
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, Guillaume Smet
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal void
appendNode
(Cascadable node) final void
appendNode
(ConstraintLocation location) final void
appendTypeParameterNode
(String nodeName) final T
final Class<?>
final Object
Returns the current value to be validated.final ValueContext.ValueState<V>
final PathImpl
getValue
(Object parent, ConstraintLocation location) final void
final void
final void
final void
resetValueState
(ValueContext.ValueState<V> valueState) final void
setConstraintLocationKind
(ConstraintLocation.ConstraintLocationKind constraintLocationKind) final void
setCurrentGroup
(Class<?> currentGroup) final void
setCurrentValidatedValue
(V currentValue) final void
setTypeParameter
(Class<?> containerClass, Integer typeParameterIndex) Sets the container element information.toString()
final boolean
-
Method Details
-
getPropertyPath
-
getCurrentGroup
-
getCurrentBean
-
getCurrentValidatable
-
getCurrentValidatedValue
Returns the current value to be validated. -
appendNode
-
appendNode
-
appendTypeParameterNode
-
markCurrentPropertyAsIterable
public final void markCurrentPropertyAsIterable() -
markCurrentPropertyAsIterableAndSetKey
-
markCurrentPropertyAsIterableAndSetIndex
-
setTypeParameter
Sets the container element information.- Parameters:
containerClass
- the class of the containertypeParameterIndex
- the index of the actual type parameter- See Also:
-
setCurrentGroup
-
setCurrentValidatedValue
-
validatingDefault
public final boolean validatingDefault() -
getConstraintLocationKind
-
setConstraintLocationKind
public final void setConstraintLocationKind(ConstraintLocation.ConstraintLocationKind constraintLocationKind) -
getCurrentValueState
-
resetValueState
-
toString
-
getValue
-