net.sf.oval.ogn
Class ObjectGraphNavigatorJXPathImpl

java.lang.Object
  extended by net.sf.oval.ogn.ObjectGraphNavigatorJXPathImpl
All Implemented Interfaces:
ObjectGraphNavigator

public class ObjectGraphNavigatorJXPathImpl
extends Object
implements ObjectGraphNavigator

JXPath "http://commons.apache.org/jxpath/" based object graph navigator implementation.

Author:
Sebastian Thomschke

Nested Class Summary
protected static class ObjectGraphNavigatorJXPathImpl.BeanPointerEx
           
protected static class ObjectGraphNavigatorJXPathImpl.BeanPointerFactoryEx
           
 
Constructor Summary
ObjectGraphNavigatorJXPathImpl()
           
 
Method Summary
 ObjectGraphNavigationResult navigateTo(Object root, String xpath)
          Navigates through the object graph starting at root object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGraphNavigatorJXPathImpl

public ObjectGraphNavigatorJXPathImpl()
Method Detail

navigateTo

public ObjectGraphNavigationResult navigateTo(Object root,
                                              String xpath)
                                       throws InvalidConfigurationException
Description copied from interface: ObjectGraphNavigator
Navigates through the object graph starting at root object.

Specified by:
navigateTo in interface ObjectGraphNavigator
Parameters:
root - the root object to start the navigation from
xpath - the object navigation path relative to the root object. The path format is implementation specific.
Returns:
the result of the navigation operation. null is returned if the target could not be determined, e.g. because of null values in the path.
Throws:
InvalidConfigurationException - if the given path is invalid, e.g. because of non-existing fields/properties named in the path.


Copyright © 2005–2015 The OVal Development Team. All rights reserved.