Package org.eclipse.persistence.jaxb
Class JAXBUnmarshalListener
java.lang.Object
org.eclipse.persistence.jaxb.JAXBUnmarshalListener
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.Unmarshaller.Listener,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
- See Also:
-
Marshaller.ListenerXMLMarshalListener
- Author:
- mmacivor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(Object target, Object parent) Event that will be called after objects are unmarshalled.voidbeforeUnmarshal(Object target, Object parent) Event that will be called before objects are unmarshalled.jakarta.xml.bind.Unmarshaller.ListenervoidsetClassBasedUnmarshalEvents(Map events) voidsetListener(jakarta.xml.bind.Unmarshaller.Listener jaxbListener)
-
Constructor Details
-
JAXBUnmarshalListener
public JAXBUnmarshalListener(jakarta.xml.bind.Unmarshaller unmarshaller)
-
-
Method Details
-
setListener
public void setListener(jakarta.xml.bind.Unmarshaller.Listener jaxbListener) -
getListener
public jakarta.xml.bind.Unmarshaller.Listener getListener() -
beforeUnmarshal
Description copied from interface:org.eclipse.persistence.internal.oxm.Unmarshaller.ListenerEvent that will be called before objects are unmarshalled.- Specified by:
beforeUnmarshalin interfaceorg.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
Description copied from interface:org.eclipse.persistence.internal.oxm.Unmarshaller.ListenerEvent that will be called after objects are unmarshalled.- Specified by:
afterUnmarshalin interfaceorg.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
-