org.exolab.castor.xml
Interface MarshalListener


public interface MarshalListener

An interface to allow external "listening" to objects when they are being marshalled for various tracking purposes and potential modification, and to prevent an object from being marshalled if necessary. An implementation of this interface may be registered with the Marshaller.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:12 $
Author:
Keith Visco, Jeff Norris

Method Summary
 void postMarshal(java.lang.Object object)
          This method is called after an object has been marshalled.
 boolean preMarshal(java.lang.Object object)
          This method is called before an object is to be marshalled.
 

Method Detail

preMarshal

public boolean preMarshal(java.lang.Object object)
This method is called before an object is to be marshalled.

Parameters:
object - the Object about to be marshalled.
Returns:
false if the object should not be marshalled.

postMarshal

public void postMarshal(java.lang.Object object)
This method is called after an object has been marshalled. If #preMarshal returned false for a given Object, this method will not be called for that Object as marshalling will not take place.

Parameters:
object - the Object that was marshalled.


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com