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| Modifier and Type | Method and Description |
|---|---|
NodeImpl |
addBeanNode() |
NodeImpl |
addCollectionElementNode() |
NodeImpl |
addCrossParameterNode() |
NodeImpl |
addParameterNode(String nodeName,
int index) |
NodeImpl |
addPropertyNode(String nodeName) |
NodeImpl |
addReturnValueNode() |
String |
asString() |
static PathImpl |
createCopy(PathImpl path) |
static PathImpl |
createPathForExecutable(ExecutableMetaData executable) |
static PathImpl |
createPathFromString(String propertyPath)
Returns a
Path instance representing the path described by the
given string. |
static PathImpl |
createRootPath() |
boolean |
equals(Object obj) |
NodeImpl |
getLeafNode() |
PathImpl |
getPathWithoutLeafNode() |
int |
hashCode() |
boolean |
isRootPath() |
Iterator<Path.Node> |
iterator() |
NodeImpl |
makeLeafNodeIterable() |
NodeImpl |
setLeafNodeIndex(Integer index) |
NodeImpl |
setLeafNodeMapKey(Object key) |
NodeImpl |
setLeafNodeValue(Object value) |
String |
toString()
Returns a human-readable representation of this path.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 addCollectionElementNode()
public NodeImpl addCrossParameterNode()
public NodeImpl addBeanNode()
public NodeImpl addReturnValueNode()
public NodeImpl makeLeafNodeIterable()
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 © 2018 JBoss by Red Hat. All rights reserved.