public class PathImpl extends Object implements javax.validation.Path, Serializable
Modifier and Type | Method and Description |
---|---|
void |
addNode(javax.validation.Path.Node node) |
static PathImpl |
createNewPath(String name) |
static PathImpl |
createPathFromString(String propertyPath)
Returns a
Path instance representing the path described by the given string. |
static PathImpl |
createShallowCopy(javax.validation.Path path) |
boolean |
equals(Object o) |
NodeImpl |
getLeafNode() |
PathImpl |
getPathWithoutLeafNode() |
int |
hashCode() |
boolean |
isRootPath() |
boolean |
isSubPathOf(javax.validation.Path path) |
Iterator<javax.validation.Path.Node> |
iterator() |
javax.validation.Path.Node |
removeLeafNode() |
String |
toString() |
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 createShallowCopy(javax.validation.Path path)
public boolean isRootPath()
public PathImpl getPathWithoutLeafNode()
public void addNode(javax.validation.Path.Node node)
public javax.validation.Path.Node removeLeafNode()
public NodeImpl getLeafNode()
public Iterator<javax.validation.Path.Node> iterator()
public boolean isSubPathOf(javax.validation.Path path)
Copyright © 2016. All rights reserved.