public final class PathImpl extends Object implements Path, Serializable
javax.validation.Path
.Path.BeanNode, Path.ConstructorNode, Path.CrossParameterNode, Path.MethodNode, Path.Node, Path.ParameterNode, Path.PropertyNode, Path.ReturnValueNode
Modifier and Type | Method and Description |
---|---|
NodeImpl |
addBeanNode() |
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() |
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 getLeafNode()
public String asString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.