org.hibernate.jsr303.tck.util
Class TestUtil.PathImpl

java.lang.Object
  extended by org.hibernate.jsr303.tck.util.TestUtil.PathImpl
All Implemented Interfaces:
Iterable<javax.validation.Path.Node>, javax.validation.Path
Enclosing class:
TestUtil

public static class TestUtil.PathImpl
extends Object
implements javax.validation.Path


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 TestUtil.PathImpl createNewPath(String name)
           
static TestUtil.PathImpl createPathFromString(String propertyPath)
          Returns a Path instance representing the path described by the given string.
 Iterator<javax.validation.Path.Node> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createPathFromString

public static TestUtil.PathImpl createPathFromString(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:
IllegalArgumentException - in case property == null or property cannot be parsed.

createNewPath

public static TestUtil.PathImpl createNewPath(String name)

addNode

public void addNode(javax.validation.Path.Node node)

iterator

public Iterator<javax.validation.Path.Node> iterator()
Specified by:
iterator in interface Iterable<javax.validation.Path.Node>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011. All Rights Reserved.