EclipseLink1.0 - 20080707 API Reference

org.eclipse.persistence.sdo.helper
Class SDOMarshalListener

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.SDOMarshalListener
All Implemented Interfaces:
XMLMarshalListener

public class SDOMarshalListener
extends java.lang.Object
implements XMLMarshalListener

Purpose: Implementation of XMLMarshalListener used when marshalling DataObjects to XML

Responsibilities:


Constructor Summary
SDOMarshalListener(XMLMarshaller aMarshaller, SDOTypeHelper aTypeHelper)
           
 
Method Summary
 void afterMarshal(java.lang.Object obj)
           
 void beforeMarshal(java.lang.Object obj)
           
 java.lang.Object getMarshalledObject()
           
 java.lang.String getPathFromAncestor(SDODataObject sourceDO, SDODataObject targetDO, SDOChangeSummary cs)
          INTERNAL: Get path for non-deleted DataObjects
ChangeSummary is not required and is set to null.
 void setMarshalledObject(java.lang.Object marshalledObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDOMarshalListener

public SDOMarshalListener(XMLMarshaller aMarshaller,
                          SDOTypeHelper aTypeHelper)
Method Detail

afterMarshal

public void afterMarshal(java.lang.Object obj)
Specified by:
afterMarshal in interface XMLMarshalListener

beforeMarshal

public void beforeMarshal(java.lang.Object obj)
Specified by:
beforeMarshal in interface XMLMarshalListener

setMarshalledObject

public void setMarshalledObject(java.lang.Object marshalledObject)

getMarshalledObject

public java.lang.Object getMarshalledObject()

getPathFromAncestor

public java.lang.String getPathFromAncestor(SDODataObject sourceDO,
                                            SDODataObject targetDO,
                                            SDOChangeSummary cs)
INTERNAL: Get path for non-deleted DataObjects
ChangeSummary is not required and is set to null.
Assumptions:
target node is an ancestor of the source (this)

Parameters:
sourceDO -
targetDO -
Returns:
String xpath

EclipseLink1.0 - 20080707 API Reference