org.exolab.castor.xml.parsing
Class UnmarshalListenerDelegate

java.lang.Object
  extended by org.exolab.castor.xml.parsing.UnmarshalListenerDelegate
All Implemented Interfaces:
UnmarshalListener

public class UnmarshalListenerDelegate
extends Object
implements 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
UnmarshalListenerDelegate()
           
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmarshalListenerDelegate

public UnmarshalListenerDelegate()
Method Detail

setUnmarshalListener

public void setUnmarshalListener(UnmarshalListener listener)
Sets an UnmarshalListener.

Parameters:
listener - the UnmarshalListener to use with this instance of the UnmarshalHandler.

setUnmarshalListener

public void setUnmarshalListener(UnmarshalListener listener)
Deprecated. please move to the new UnmarshalListener interface

Sets an UnmarshalListener.

Parameters:
listener - the UnmarshalListener to use with this instance of the UnmarshalHandler.

unmarshalled

public void unmarshalled(Object object,
                         Object parentObject)
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 interface UnmarshalListener
Parameters:
object -
parentObject -
See Also:
org.castor.xml.UnmarshalListener.unmarshalled

fieldAdded

public void fieldAdded(String fieldName,
                       Object stateObject,
                       Object fieldStateObject)
Description copied from interface: UnmarshalListener
This method is called after a child object has been added during the unmarshalling. This method will be called after #unmarshalled(Object) has been called for the child.

Specified by:
fieldAdded in interface UnmarshalListener
Parameters:
object -
parentObject -
See Also:
org.castor.xml.UnmarshalListener.fieldAdded

initialized

public void initialized(Object stateObject,
                        Object parentObject)
Description copied from interface: UnmarshalListener
This method is called when an object has just been initialized by the Unmarshaller.

Specified by:
initialized in interface UnmarshalListener
Parameters:
object -
parentObject -
See Also:
org.castor.xml.UnmarshalListener.initialized

attributesProcessed

public void attributesProcessed(Object stateObject,
                                Object parentObject)
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 interface UnmarshalListener
Parameters:
object -
parentObject -
See Also:
org.castor.xml.UnmarshalListener.attributesProcessed


Copyright © 2011. All Rights Reserved.