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
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 NodeImpl addCrossParameterNode()
public NodeImpl addBeanNode()
public NodeImpl addReturnValueNode()
public NodeImpl makeLeafNodeIterable()
public NodeImpl setLeafNodeTypeParameter(Class<?> containerClass, Integer typeArgumentIndex)
public void removeLeafNode()
public NodeImpl getLeafNode()
public String asString()
public String toString()
Copyright © 2007-2021 Red Hat, Inc. All Rights Reserved