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 TypeMethodDescriptionvoid
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 anUnmarshalListener
.void
setUnmarshalListener
(UnmarshalListener listener) Deprecated.void
unmarshalled
(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
- theUnmarshalListener
to use with this instance of theUnmarshalHandler
.
-
setUnmarshalListener
Deprecated.please move to the newUnmarshalListener
interfaceSets anUnmarshalListener
.- Parameters:
listener
- theUnmarshalListener
to use with this instance of the UnmarshalHandler.
-
unmarshalled
Description copied from interface:UnmarshalListener
This method is called after an object has been completely unmarshalled, including all of its children (if any).- Specified by:
unmarshalled
in interfaceUnmarshalListener
- Parameters:
object
-parentObject
-- See Also:
-
-
invalid @see
org.castor.xml.UnmarshalListener.unmarshalled
-
-
fieldAdded
Description copied from interface:UnmarshalListener
This method is called after a child object has been added during the unmarshalling. This method will be called afterinvalid @link
#unmarshalled(Object)
- Specified by:
fieldAdded
in 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:
-
-
invalid @see
org.castor.xml.UnmarshalListener.fieldAdded
-
-
initialized
Description copied from interface:UnmarshalListener
This method is called when an object has just been initialized by the Unmarshaller.- Specified by:
initialized
in interfaceUnmarshalListener
- Parameters:
stateObject
- the Object that was initialized.parentObject
-object
-- See Also:
-
-
invalid @see
org.castor.xml.UnmarshalListener.initialized
-
-
attributesProcessed
Description copied from interface:UnmarshalListener
This 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:
attributesProcessed
in interfaceUnmarshalListener
- Parameters:
stateObject
- the Object the object being unmarshalled.parentObject
-object
-- See Also:
-
-
invalid @see
org.castor.xml.UnmarshalListener.attributesProcessed
-
-
UnmarshalListener
interface