Class SDOUnmarshalListener
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.SDOCSUnmarshalListener
-
- org.eclipse.persistence.sdo.helper.SDOUnmarshalListener
-
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
,XMLUnmarshalListener
public class SDOUnmarshalListener extends SDOCSUnmarshalListener
Purpose: Implementation of XMLUnmarshalListener used when unmarshalling XML to XMLDocuments
Responsibilities:
- When creating a DataObject we need to call setType and setHelperContext with the appropriate values
- When we are finished Unmarshalling the root object we need to set up the ChangeSummary objects. ChangeSummaries have xpaths to other parts of the documents so the rest of the objects need to be built before we process the ChangeSummaries
-
-
Constructor Summary
Constructors Constructor Description SDOUnmarshalListener(commonj.sdo.helper.HelperContext aContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterUnmarshal(Object target, Object parent)
Event that will be called after objects are unmarshalled.void
beforeUnmarshal(Object target, Object parent)
Event that will be called before objects are unmarshalled.
-
-
-
Method Detail
-
beforeUnmarshal
public void beforeUnmarshal(Object target, Object parent)
Description copied from interface:org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
Event that will be called before objects are unmarshalled.- Specified by:
beforeUnmarshal
in interfaceorg.eclipse.persistence.internal.oxm.Unmarshaller.Listener
- Overrides:
beforeUnmarshal
in classSDOCSUnmarshalListener
- Parameters:
target
- A newly created instance of the object to be unmarshalled.parent
- the owning object of the object that will be unmarshalled. This may be null.
-
afterUnmarshal
public void afterUnmarshal(Object target, Object parent)
Description copied from interface:org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
Event that will be called after objects are unmarshalled.- Specified by:
afterUnmarshal
in interfaceorg.eclipse.persistence.internal.oxm.Unmarshaller.Listener
- Overrides:
afterUnmarshal
in classSDOCSUnmarshalListener
- Parameters:
target
- assumed to be non-nullparent
- may be null, indicating target is root object
-
-