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 PathImplcreateCopy(PathImpl path) static PathImplstatic PathImplcreatePathForExecutable(ExecutableMetaData executable) static PathImplcreatePathFromString(String propertyPath) Returns aPathinstance representing the path described by the given string.static PathImplbooleaninthashCode()booleaniterator()voidsetLeafNodeTypeParameter(Class<?> containerClass, Integer typeArgumentIndex) setLeafNodeValueIfRequired(Object value) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
createPathFromString
Returns aPathinstance 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
Pathinstance representing the path described by the given string. - Throws:
IllegalArgumentException- in caseproperty == nullorpropertycannot 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()
-