org.hibernate.validation.engine
Class PathImpl

java.lang.Object
  extended by org.hibernate.validation.engine.PathImpl
All Implemented Interfaces:
java.lang.Iterable<javax.validation.Path.Node>, javax.validation.Path

public class PathImpl
extends java.lang.Object
implements javax.validation.Path

Author:
Hardy Ferentschik

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.Path
javax.validation.Path.Node
 
Method Summary
 void addNode(javax.validation.Path.Node node)
           
static PathImpl createNewRootPath()
           
static PathImpl createPathFromString(java.lang.String propertyPath)
          Returns a Path instance representing the path described by the given string.
static PathImpl createShallowCopy(PathImpl path)
           
 boolean equals(java.lang.Object o)
           
 NodeImpl getLeafNode()
           
 PathImpl getPathWithoutLeafNode()
           
 int hashCode()
           
 boolean isSubPathOf(javax.validation.Path path)
           
 java.util.Iterator<javax.validation.Path.Node> iterator()
           
 javax.validation.Path.Node removeLeafNode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.

createNewRootPath

public static PathImpl createNewRootPath()

createShallowCopy

public static PathImpl createShallowCopy(PathImpl path)

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-2009. All Rights Reserved.