org.hibernate.validator.engine
Class PathImpl
java.lang.Object
org.hibernate.validator.engine.PathImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<javax.validation.Path.Node>, javax.validation.Path
public class PathImpl
- extends java.lang.Object
- implements javax.validation.Path, java.io.Serializable
- Author:
- Hardy Ferentschik
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface javax.validation.Path |
javax.validation.Path.Node |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
createPathFromString
public static PathImpl createPathFromString(java.lang.String propertyPath)
- Returns a
Path instance representing the path described by the given string. To create a root node the empty string should be passed.
- Parameters:
propertyPath - the path as string representation.
- Returns:
- a
Path instance representing the path described by the given string.
- Throws:
java.lang.IllegalArgumentException - in case property == null or property cannot be parsed.
createNewPath
public static PathImpl createNewPath(java.lang.String name)
createShallowCopy
public static PathImpl createShallowCopy(javax.validation.Path path)
isRootPath
public boolean isRootPath()
getPathWithoutLeafNode
public PathImpl getPathWithoutLeafNode()
addNode
public void addNode(javax.validation.Path.Node node)
removeLeafNode
public javax.validation.Path.Node removeLeafNode()
getLeafNode
public NodeImpl getLeafNode()
iterator
public java.util.Iterator<javax.validation.Path.Node> iterator()
- Specified by:
iterator in interface java.lang.Iterable<javax.validation.Path.Node>
isSubPathOf
public boolean isSubPathOf(javax.validation.Path path)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2007-2010. All Rights Reserved.