Class JAXBUnmarshalListener

  • All Implemented Interfaces:
    org.eclipse.persistence.internal.oxm.Unmarshaller.Listener, XMLUnmarshalListener

    public class JAXBUnmarshalListener
    extends java.lang.Object
    implements XMLUnmarshalListener
    INTERNAL:

    Purpose:Provide a wrapper for a JAXB 2.0 Unmarshal Listener that implements XMLUnmarshalListener

    Responsibilities:

    • Implement the XMLUnmarshalListener API
    • Delegate event callbacks to the wrapped Listener instance
    • Perform JAXB 2.0 Class-Based unmarshal event callbacks
    Since:
    Oracle TopLink 11.1.1.0.0
    Author:
    mmacivor
    See Also:
    Marshaller.Listener, XMLMarshalListener
    • Constructor Summary

      Constructors 
      Constructor Description
      JAXBUnmarshalListener​(javax.xml.bind.Unmarshaller unmarshaller)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterUnmarshal​(java.lang.Object target, java.lang.Object parent)
      Event that will be called after objects are unmarshalled.
      void beforeUnmarshal​(java.lang.Object target, java.lang.Object parent)
      Event that will be called before objects are unmarshalled.
      javax.xml.bind.Unmarshaller.Listener getListener()  
      void setClassBasedUnmarshalEvents​(java.util.Map events)  
      void setListener​(javax.xml.bind.Unmarshaller.Listener jaxbListener)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JAXBUnmarshalListener

        public JAXBUnmarshalListener​(javax.xml.bind.Unmarshaller unmarshaller)
    • Method Detail

      • setListener

        public void setListener​(javax.xml.bind.Unmarshaller.Listener jaxbListener)
      • getListener

        public javax.xml.bind.Unmarshaller.Listener getListener()
      • beforeUnmarshal

        public void beforeUnmarshal​(java.lang.Object target,
                                    java.lang.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 interface org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
        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​(java.lang.Object target,
                                   java.lang.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 interface org.eclipse.persistence.internal.oxm.Unmarshaller.Listener
        Parameters:
        target - the object that was unmarshalled.
        parent - the owning object of the object that was unmarshalled. This may be null.
      • setClassBasedUnmarshalEvents

        public void setClassBasedUnmarshalEvents​(java.util.Map events)