Class UnmarshalListenerDelegate

java.lang.Object
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 Details

    • UnmarshalListenerDelegate

      public UnmarshalListenerDelegate()
  • Method Details

    • setUnmarshalListener

      public void setUnmarshalListener(UnmarshalListener listener)
      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
      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