Class SDOUnmarshalListener

  • All Implemented Interfaces:
    org.eclipse.persistence.internal.oxm.Unmarshaller.Listener, org.eclipse.persistence.oxm.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 Detail

      • SDOUnmarshalListener

        public SDOUnmarshalListener​(HelperContext aContext)
    • Method Detail

      • beforeUnmarshal

        public void beforeUnmarshal​(Object target,
                                    Object parent)
        Specified by:
        beforeUnmarshal in interface org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
        Overrides:
        beforeUnmarshal in class SDOCSUnmarshalListener
      • afterUnmarshal

        public void afterUnmarshal​(Object target,
                                   Object parent)
        Specified by:
        afterUnmarshal in interface org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
        Overrides:
        afterUnmarshal in class SDOCSUnmarshalListener
        Parameters:
        target - assumed to be non-null
        parent - may be null, indicating target is root object