public final class PathImpl extends Object implements javax.validation.Path, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_PATH_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
NodeImpl |
addNode(String nodeName) |
String |
asString() |
void |
buildHashCode() |
static PathImpl |
createCopy(PathImpl path) |
static PathImpl |
createNewPath(String name) |
static PathImpl |
createPathForMethodParameter(Method method,
String parameterName)
Creates a path representing the specified method parameter.
|
static PathImpl |
createPathForMethodReturnValue(Method method) |
static PathImpl |
createPathFromString(String propertyPath)
Returns a
Path instance representing the path described by the
given string. |
static PathImpl |
createRootPath() |
boolean |
equals(Object o) |
NodeImpl |
getLeafNode() |
PathImpl |
getPathWithoutLeafNode() |
int |
hashCode() |
boolean |
isRootPath() |
Iterator<javax.validation.Path.Node> |
iterator() |
NodeImpl |
makeLeafNodeIterable() |
NodeImpl |
setLeafNodeIndex(Integer index) |
NodeImpl |
setLeafNodeMapKey(Object key) |
String |
toString() |
public static final String PROPERTY_PATH_SEPARATOR
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 createPathForMethodParameter(Method method, String parameterName)
method
- The method hosting the parameter to represent.parameterName
- The parameter's name, e.g. "arg0" or "param1".public static PathImpl createRootPath()
public final boolean isRootPath()
public final PathImpl getPathWithoutLeafNode()
public final NodeImpl makeLeafNodeIterable()
public final NodeImpl getLeafNode()
public final Iterator<javax.validation.Path.Node> iterator()
public final String asString()
public void buildHashCode()
Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved