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 voidappendNode(Cascadable node) final voidappendNode(ConstraintLocation location) final voidappendTypeParameterNode(String nodeName) final Tfinal Class<?>final ObjectReturns the current value to be validated.final ValueContext.ValueState<V>final PathImplgetValue(Object parent, ConstraintLocation location) final voidfinal voidfinal voidfinal voidresetValueState(ValueContext.ValueState<V> valueState) final voidsetConstraintLocationKind(ConstraintLocation.ConstraintLocationKind constraintLocationKind) final voidsetCurrentGroup(Class<?> currentGroup) final voidsetCurrentValidatedValue(V currentValue) final voidsetTypeParameter(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
-