net.sf.oval.ogn
Class ObjectGraphNavigatorDefaultImpl
java.lang.Object
net.sf.oval.ogn.ObjectGraphNavigatorDefaultImpl
- All Implemented Interfaces:
- ObjectGraphNavigator
public class ObjectGraphNavigatorDefaultImpl
- extends Object
- implements ObjectGraphNavigator
Default object graph navigator implementation.
Object path separator is a colon (.), e.g. owner.address.street
The implementation currently is limited to address fields and properties. Separate items of arrays, maps or keys cannot be addressed.
- Author:
- Sebastian Thomschke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectGraphNavigatorDefaultImpl
public ObjectGraphNavigatorDefaultImpl()
navigateTo
public ObjectGraphNavigationResult navigateTo(Object root,
String path)
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 frompath
- 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.