public final class PathImpl
extends java.lang.Object
implements javax.validation.Path, java.io.Serializable
javax.validation.Path
.javax.validation.Path.BeanNode, javax.validation.Path.ConstructorNode, javax.validation.Path.ContainerElementNode, javax.validation.Path.CrossParameterNode, javax.validation.Path.MethodNode, javax.validation.Path.Node, javax.validation.Path.ParameterNode, javax.validation.Path.PropertyNode, javax.validation.Path.ReturnValueNode
Modifier and Type | Method and Description |
---|---|
NodeImpl |
addBeanNode() |
NodeImpl |
addContainerElementNode(java.lang.String nodeName) |
NodeImpl |
addCrossParameterNode() |
NodeImpl |
addParameterNode(java.lang.String nodeName,
int index) |
NodeImpl |
addPropertyNode(java.lang.String nodeName) |
NodeImpl |
addReturnValueNode() |
java.lang.String |
asString() |
static PathImpl |
createCopy(PathImpl path) |
static PathImpl |
createPathForExecutable(ExecutableMetaData executable) |
static PathImpl |
createPathFromString(java.lang.String propertyPath)
Returns a
Path instance representing the path described by the
given string. |
static PathImpl |
createRootPath() |
boolean |
equals(java.lang.Object obj) |
NodeImpl |
getLeafNode() |
PathImpl |
getPathWithoutLeafNode() |
int |
hashCode() |
boolean |
isRootPath() |
java.util.Iterator<javax.validation.Path.Node> |
iterator() |
NodeImpl |
makeLeafNodeIterable() |
NodeImpl |
makeLeafNodeIterableAndSetIndex(java.lang.Integer index) |
NodeImpl |
makeLeafNodeIterableAndSetMapKey(java.lang.Object key) |
void |
removeLeafNode() |
NodeImpl |
setLeafNodeTypeParameter(java.lang.Class<?> containerClass,
java.lang.Integer typeArgumentIndex) |
NodeImpl |
setLeafNodeValueIfRequired(java.lang.Object value) |
java.lang.String |
toString() |
public static PathImpl createPathFromString(java.lang.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.java.lang.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 addPropertyNode(java.lang.String nodeName)
public NodeImpl addContainerElementNode(java.lang.String nodeName)
public NodeImpl addParameterNode(java.lang.String nodeName, int index)
public NodeImpl addCrossParameterNode()
public NodeImpl addBeanNode()
public NodeImpl addReturnValueNode()
public NodeImpl makeLeafNodeIterable()
public NodeImpl makeLeafNodeIterableAndSetIndex(java.lang.Integer index)
public NodeImpl makeLeafNodeIterableAndSetMapKey(java.lang.Object key)
public NodeImpl setLeafNodeValueIfRequired(java.lang.Object value)
public NodeImpl setLeafNodeTypeParameter(java.lang.Class<?> containerClass, java.lang.Integer typeArgumentIndex)
public void removeLeafNode()
public NodeImpl getLeafNode()
public java.util.Iterator<javax.validation.Path.Node> iterator()
iterator
in interface java.lang.Iterable<javax.validation.Path.Node>
public java.lang.String asString()
public java.lang.String toString()
toString
in interface javax.validation.Path
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved