Class PathImpl
- java.lang.Object
-
- org.hibernate.validator.internal.engine.path.PathImpl
-
- All Implemented Interfaces:
Path,Serializable,Iterable<Path.Node>
public final class PathImpl extends Object implements Path, Serializable
Default implementation ofjakarta.validation.Path.- Author:
- Hardy Ferentschik, Gunnar Morling, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
- See Also:
- Serialized Form
-
-
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
-
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 Detail
-
createPathFromString
public static PathImpl createPathFromString(String propertyPath)
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
public static PathImpl createPathForExecutable(ExecutableMetaData executable)
-
createRootPath
public static PathImpl createRootPath()
-
isRootPath
public boolean isRootPath()
-
addCrossParameterNode
public NodeImpl addCrossParameterNode()
-
addBeanNode
public NodeImpl addBeanNode()
-
addReturnValueNode
public NodeImpl addReturnValueNode()
-
makeLeafNodeIterable
public NodeImpl makeLeafNodeIterable()
-
setLeafNodeTypeParameter
public NodeImpl setLeafNodeTypeParameter(Class<?> containerClass, Integer typeArgumentIndex)
-
removeLeafNode
public void removeLeafNode()
-
getLeafNode
public NodeImpl getLeafNode()
-
asString
public String asString()
-
toString
public String toString()
Description copied from interface:PathReturns a human-readable representation of this path.Clients should not rely on any specific structure of the returned value. Instead they should iterate through the path nodes and obtain any required information by calling the methods on
Path.Nodeand its sub-types.
-
-