EclipseLink 2.1.2, build 'v20101206-r8635' 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()
           
 javax.xml.namespace.QName getMarshalledObjectRootQName()
           
 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.
 MarshalRecord getRootMarshalRecord()
           
 void setMarshalledObject(java.lang.Object marshalledObject)
           
 void setMarshalledObjectRootQName(javax.xml.namespace.QName rootQName)
           
 void setRootMarshalRecord(MarshalRecord rootRecord)
           
 
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()

setMarshalledObjectRootQName

public void setMarshalledObjectRootQName(javax.xml.namespace.QName rootQName)

getMarshalledObjectRootQName

public javax.xml.namespace.QName getMarshalledObjectRootQName()

setRootMarshalRecord

public void setRootMarshalRecord(MarshalRecord rootRecord)

getRootMarshalRecord

public MarshalRecord getRootMarshalRecord()

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

EclipseLink 2.1.2, build 'v20101206-r8635' API Reference