org.plasma.sdo.xpath
Class DataGraphNodeAdapter

java.lang.Object
  extended by org.plasma.sdo.xpath.DataGraphNodeAdapter
Direct Known Subclasses:
XPathDataObject, XPathDataProperty, XPathDataValue

public abstract class DataGraphNodeAdapter
extends Object

Wraps a result or "endpoint" of a Jaxen XPATH parse, supplying source traversal information, e.g. the Data Object and Property which served as the source or "parent" of a particular traversal path.


Field Summary
protected  DataObject source
           
protected  Property sourceProperty
           
 
Constructor Summary
DataGraphNodeAdapter(DataObject source, Property sourceProperty)
           
 
Method Summary
abstract  Object get()
          Returns the dereferenced value of an XPATH parse result.
 DataObject getSource()
          Returns the data object traversal source
 Property getSourceProperty()
          Returns the property traversal source
abstract  void set(Object value)
          Sets the given value into the XPATH parse result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected DataObject source

sourceProperty

protected Property sourceProperty
Constructor Detail

DataGraphNodeAdapter

public DataGraphNodeAdapter(DataObject source,
                            Property sourceProperty)
Method Detail

get

public abstract Object get()
Returns the dereferenced value of an XPATH parse result. This method generalizes how subclasses containing either data xpath result (e.g. a Data Object or value) or meta-data xpath results (e.g. a Property) return or dereference the results differently.

Returns:
the result

set

public abstract void set(Object value)
Sets the given value into the XPATH parse result. Abstract method to generalize how subclasses containing either data xpath result (e.g. a Data Object or value) or meta-data xpath results (e.g. a Property) dereference the results differently.


getSource

public DataObject getSource()
Returns the data object traversal source

Returns:
the source data object

getSourceProperty

public Property getSourceProperty()
Returns the property traversal source

Returns:
the source property


Copyright © 2013. All rights reserved.