gov.nih.nci.system.client.util.xml
Interface Marshaller

All Known Implementing Classes:
caCOREMarshaller

public interface Marshaller

The object used for serializing a Java object


Method Summary
 java.lang.Object getBaseMarshaller()
          Returns the base marshaller
 java.lang.String toXML(java.lang.Object object)
          Returns a String representation of a Java object.
 void toXML(java.lang.Object object, java.io.Writer writer)
          Serializes an object to a java.io.Writer
 

Method Detail

toXML

java.lang.String toXML(java.lang.Object object)
                       throws XMLUtilityException
Returns a String representation of a Java object.

Parameters:
name - the location of the image, relative to the url argument
Returns:
the string representation of the object
Throws:
XMLUtilityException

toXML

void toXML(java.lang.Object object,
           java.io.Writer writer)
           throws XMLUtilityException
Serializes an object to a java.io.Writer

Parameters:
object - the object to be serialized.
reader - the writer to be written to.
Throws:
XMLUtilityException

getBaseMarshaller

java.lang.Object getBaseMarshaller()
                                   throws XMLUtilityException
Returns the base marshaller

Returns:
the base marshaller object
Throws:
XMLUtilityException