net.sf.oval.ogn
Class ObjectGraphNavigatorJXPathImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectGraphNavigatorJXPathImpl
public ObjectGraphNavigatorJXPathImpl()
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 fromxpath
- 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-2013 The OVal Development Team. All Rights Reserved.