net.sf.oval.ogn
Class ObjectGraphNavigatorDefaultImpl

java.lang.Object
  extended by 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

Constructor Summary
ObjectGraphNavigatorDefaultImpl()
           
 
Method Summary
 ObjectGraphNavigationResult navigateTo(Object root, String path)
          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

ObjectGraphNavigatorDefaultImpl

public ObjectGraphNavigatorDefaultImpl()
Method Detail

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 from
path - 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.