public class UnmarshalListenerDelegate extends Object implements UnmarshalListener
UnmarshalListener. Even if
UnmarshalListener is null, all of the delegating methods can be invoke.| Constructor and Description |
|---|
UnmarshalListenerDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
attributesProcessed(Object stateObject,
Object parentObject)
This method is called once the attributes have been processed.
|
void |
fieldAdded(String fieldName,
Object stateObject,
Object fieldStateObject)
This method is called after a child object has been added during the
unmarshalling.
|
void |
initialized(Object stateObject,
Object parentObject)
This method is called when an object has just been initialized by the
Unmarshaller.
|
void |
setUnmarshalListener(UnmarshalListener listener)
Sets an
UnmarshalListener. |
void |
setUnmarshalListener(UnmarshalListener listener)
Deprecated.
please move to the new
UnmarshalListener interface |
void |
unmarshalled(Object object,
Object parentObject)
This method is called after an object
has been completely unmarshalled, including
all of its children (if any).
|
public void setUnmarshalListener(UnmarshalListener listener)
UnmarshalListener.listener - the UnmarshalListener to use with this
instance of the UnmarshalHandler.public void setUnmarshalListener(UnmarshalListener listener)
UnmarshalListener interfaceUnmarshalListener.listener - the UnmarshalListener to use
with this instance of the UnmarshalHandler.public void unmarshalled(Object object, Object parentObject)
UnmarshalListenerunmarshalled in interface UnmarshalListenerobject - parentObject - org.castor.xml.UnmarshalListener.unmarshalledpublic void fieldAdded(String fieldName, Object stateObject, Object fieldStateObject)
UnmarshalListener#unmarshalled(Object) has
been called for the child.fieldAdded in interface UnmarshalListenerobject - parentObject - org.castor.xml.UnmarshalListener.fieldAddedpublic void initialized(Object stateObject, Object parentObject)
UnmarshalListenerinitialized in interface UnmarshalListenerobject - parentObject - org.castor.xml.UnmarshalListener.initializedpublic void attributesProcessed(Object stateObject, Object parentObject)
UnmarshalListenerattributesProcessed in interface UnmarshalListenerobject - parentObject - org.castor.xml.UnmarshalListener.attributesProcessedCopyright © 2021. All rights reserved.