Package org.exolab.castor.xml.parsing
Class UnmarshalListenerDelegate
java.lang.Object
org.exolab.castor.xml.parsing.UnmarshalListenerDelegate
- All Implemented Interfaces:
UnmarshalListener
This class handles delegates methods call to
UnmarshalListener. Even if
UnmarshalListener is null, all of the delegating methods can be invoke.- Since:
- 1.3.2
- Author:
- Philipp Erlacher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattributesProcessed(Object stateObject, Object parentObject) This method is called once the attributes have been processed.voidfieldAdded(String fieldName, Object stateObject, Object fieldStateObject) This method is called after a child object has been added during the unmarshalling.voidinitialized(Object stateObject, Object parentObject) This method is called when an object has just been initialized by the Unmarshaller.voidsetUnmarshalListener(UnmarshalListener listener) Sets anUnmarshalListener.voidsetUnmarshalListener(UnmarshalListener listener) Deprecated.voidunmarshalled(Object object, Object parentObject) This method is called after an object has been completely unmarshalled, including all of its children (if any).
-
Constructor Details
-
UnmarshalListenerDelegate
public UnmarshalListenerDelegate()
-
-
Method Details
-
setUnmarshalListener
Sets anUnmarshalListener.- Parameters:
listener- theUnmarshalListenerto use with this instance of theUnmarshalHandler.
-
setUnmarshalListener
Deprecated.please move to the newUnmarshalListenerinterfaceSets anUnmarshalListener.- Parameters:
listener- theUnmarshalListenerto use with this instance of the UnmarshalHandler.
-
unmarshalled
Description copied from interface:UnmarshalListenerThis method is called after an object has been completely unmarshalled, including all of its children (if any).- Specified by:
unmarshalledin interfaceUnmarshalListener- Parameters:
object-parentObject-- See Also:
-
fieldAdded
Description copied from interface:UnmarshalListenerThis method is called after a child object has been added during the unmarshalling. This method will be called afterhas been called for the child.invalid reference
#unmarshalled(Object)- Specified by:
fieldAddedin interfaceUnmarshalListener- Parameters:
fieldName- The Name of the field the child is being added to.stateObject- The Object being unmarshalled.fieldStateObject- The Object that was just added.object-parentObject-- See Also:
-
initialized
Description copied from interface:UnmarshalListenerThis method is called when an object has just been initialized by the Unmarshaller.- Specified by:
initializedin interfaceUnmarshalListener- Parameters:
stateObject- the Object that was initialized.parentObject-object-- See Also:
-
attributesProcessed
Description copied from interface:UnmarshalListenerThis method is called once the attributes have been processed. It indicates that the the fields of the given object corresponding to attributes in the XML document have been set.- Specified by:
attributesProcessedin interfaceUnmarshalListener- Parameters:
stateObject- the Object the object being unmarshalled.parentObject-object-- See Also:
-
UnmarshalListenerinterface