Home » Castor-1.3-src » org.castor » xml » [javadoc | source]
org.castor.xml
public interface: UnmarshalListener [javadoc | source]

All Known Implementing Classes:
    MappingUnmarshallListener, UnmarshalListenerAdapter

An interface to allow external "listening" to objects when they are being unmarshalled for various tracking purposes and potential modification. An implementation of this interface may be registered with the Unmarshaller.
This is already a new version of this interface with enhanced callback methods. The orginial implementation still exists but is deprecated org.exolab.castor.xml.UnmarshalListener .

The UnmarshalListener interface does not report on native data types that are unmarshalled.

The first definition of this interface was by Paul Christmann, Keith Visco and Arnaud Blandin.

Method from org.castor.xml.UnmarshalListener Summary:
attributesProcessed,   fieldAdded,   initialized,   unmarshalled
Method from org.castor.xml.UnmarshalListener Detail:
 public  void attributesProcessed(Object target,
    Object parent)
    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.
 public  void fieldAdded(String fieldName,
    Object parent,
    Object child)
    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.
 public  void initialized(Object target,
    Object parent)
    This method is called when an object has just been initialized by the Unmarshaller.
 public  void unmarshalled(Object target,
    Object parent)
    This method is called after an object has been completely unmarshalled, including all of its children (if any).