Class PathImpl
java.lang.Object
org.hibernate.validator.internal.engine.path.PathImpl
- All Implemented Interfaces:
Path
,Serializable
,Iterable<Path.Node>
Default implementation of
jakarta.validation.Path
.- Author:
- Hardy Ferentschik, Gunnar Morling, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.Path
Path.BeanNode, Path.ConstructorNode, Path.ContainerElementNode, Path.CrossParameterNode, Path.MethodNode, Path.Node, Path.ParameterNode, Path.PropertyNode, Path.ReturnValueNode
-
Method Summary
Modifier and TypeMethodDescriptionaddContainerElementNode
(String nodeName) addParameterNode
(String nodeName, int index) addPropertyNode
(String nodeName) asString()
static PathImpl
createCopy
(PathImpl path) static PathImpl
static PathImpl
createPathForExecutable
(ExecutableMetaData executable) static PathImpl
createPathFromString
(String propertyPath) Returns aPath
instance representing the path described by the given string.static PathImpl
boolean
int
hashCode()
boolean
iterator()
void
setLeafNodeTypeParameter
(Class<?> containerClass, Integer typeArgumentIndex) setLeafNodeValueIfRequired
(Object value) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
createPathFromString
Returns aPath
instance representing the path described by the given string. To create a root node the empty string should be passed.- Parameters:
propertyPath
- the path as string representation.- Returns:
- a
Path
instance representing the path described by the given string. - Throws:
IllegalArgumentException
- in caseproperty == null
orproperty
cannot be parsed.
-
createPathForExecutable
-
createRootPath
-
createCopy
-
createCopyWithoutLeafNode
-
isRootPath
public boolean isRootPath() -
addPropertyNode
-
addContainerElementNode
-
addParameterNode
-
addCrossParameterNode
-
addBeanNode
-
addReturnValueNode
-
makeLeafNodeIterable
-
makeLeafNodeIterableAndSetIndex
-
makeLeafNodeIterableAndSetMapKey
-
setLeafNodeValueIfRequired
-
setLeafNodeTypeParameter
-
removeLeafNode
public void removeLeafNode() -
getLeafNode
-
iterator
-
asString
-
toString
-
equals
-
hashCode
public int hashCode()
-