public class SDOMarshalListener extends Object implements XMLMarshalListener
Purpose: Implementation of XMLMarshalListener used when marshalling DataObjects to XML
Responsibilities:
Constructor and Description |
---|
SDOMarshalListener(XMLMarshaller aMarshaller,
SDOTypeHelper aTypeHelper) |
Modifier and Type | Method and Description |
---|---|
void |
afterMarshal(Object obj)
This event will be called after an object is marshalled.
|
void |
beforeMarshal(Object obj)
This event will be called before an object is marshalled.
|
Object |
getMarshalledObject() |
QName |
getMarshalledObjectRootQName() |
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) |
MarshalRecord |
getRootMarshalRecord() |
void |
setMarshalledObject(Object marshalledObject) |
void |
setMarshalledObjectRootQName(QName rootQName) |
void |
setRootMarshalRecord(MarshalRecord rootRecord) |
public SDOMarshalListener(XMLMarshaller aMarshaller, SDOTypeHelper aTypeHelper)
public void afterMarshal(Object obj)
org.eclipse.persistence.internal.oxm.Marshaller.Listener
afterMarshal
in interface org.eclipse.persistence.internal.oxm.Marshaller.Listener
obj
- The object that was marshalled.public void beforeMarshal(Object obj)
org.eclipse.persistence.internal.oxm.Marshaller.Listener
beforeMarshal
in interface org.eclipse.persistence.internal.oxm.Marshaller.Listener
obj
- The object that will be marshalled.public void setMarshalledObject(Object marshalledObject)
public Object getMarshalledObject()
public void setMarshalledObjectRootQName(QName rootQName)
public QName getMarshalledObjectRootQName()
public void setRootMarshalRecord(MarshalRecord rootRecord)
public MarshalRecord getRootMarshalRecord()
public String getPathFromAncestor(SDODataObject sourceDO, SDODataObject targetDO, SDOChangeSummary cs)
sourceDO
- targetDO
-