public final class PathImpl extends Object implements Path, Serializable
javax.validation.Path
.Path.BeanNode, Path.ConstructorNode, Path.ContainerElementNode, Path.CrossParameterNode, Path.MethodNode, Path.Node, Path.ParameterNode, Path.PropertyNode, Path.ReturnValueNode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static PathImpl createPathFromString(String propertyPath)
Path
instance representing the path described by the
given string. To create a root node the empty string should be passed.propertyPath
- the path as string representation.Path
instance representing the path described by the
given string.IllegalArgumentException
- in case property == null
or
property
cannot be parsed.public static PathImpl createPathForExecutable(ExecutableMetaData executable)
public static PathImpl createRootPath()
public boolean isRootPath()
public PathImpl getPathWithoutLeafNode()
public NodeImpl addCrossParameterNode()
public NodeImpl addBeanNode()
public NodeImpl addReturnValueNode()
public NodeImpl makeLeafNodeIterable()
public NodeImpl setLeafNodeTypeParameter(Class<?> containerClass, Integer typeArgumentIndex)
public void removeLeafNode()
public NodeImpl getLeafNode()
public String asString()
public String toString()
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.Node
and its sub-types.
Copyright © 2021 JBoss by Red Hat. All rights reserved.