|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.Unmarshaller.Listener
public abstract static class Unmarshaller.Listener
Register an instance of an implementation of this class with
Unmarshaller
to externally listen
for unmarshal events.
This class enables pre and post processing of an instance of a JAXB mapped class
as XML data is unmarshalled into it. The event callbacks are called when unmarshalling
XML content into a JAXBElement instance or a JAXB mapped class that represents a complex type definition.
The event callbacks are not called when unmarshalling to an instance of a
Java datatype that represents a simple type definition.
External listener is one of two different mechanisms for defining unmarshal event callbacks.
See Unmarshal Event Callbacks for an overview.
(@link #setListener(Listener)}
(@link #getListener()}
Constructor Summary | |
---|---|
Unmarshaller.Listener()
|
Method Summary | |
---|---|
void |
afterUnmarshal(java.lang.Object target,
java.lang.Object parent)
Callback method invoked after unmarshalling XML data into target. |
void |
beforeUnmarshal(java.lang.Object target,
java.lang.Object parent)
Callback method invoked before unmarshalling into target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Unmarshaller.Listener()
Method Detail |
---|
public void beforeUnmarshal(java.lang.Object target, java.lang.Object parent)
target
- non-null instance of JAXB mapped class prior to unmarshalling into it.parent
- instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void afterUnmarshal(java.lang.Object target, java.lang.Object parent)
target
- non-null instance of JAXB mapped class prior to unmarshalling into it.parent
- instance of JAXB mapped class that will reference target.
null when target is root element.
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |