org.jfree.xml.writer

Interface XmlWriteHandler

public interface XmlWriteHandler

The interface that must be supported by all XML write handlers.
Method Summary
RootXmlWriteHandlergetRootHandler()
Returns the root handler for this write handler.
voidsetRootHandler(RootXmlWriteHandler rootHandler)
Sets the root handler.
voidwrite(String tagName, Object object, XMLWriter writer, String mPlexAttribute, String mPlexValue)
Performs the writing of a single object.

Method Detail

getRootHandler

public RootXmlWriteHandler getRootHandler()
Returns the root handler for this write handler. The root handler will be used to resolve the child handlers.

Returns: the root handler.

setRootHandler

public void setRootHandler(RootXmlWriteHandler rootHandler)
Sets the root handler.

Parameters: rootHandler the root handler.

write

public void write(String tagName, Object object, XMLWriter writer, String mPlexAttribute, String mPlexValue)
Performs the writing of a single object.

Parameters: tagName the tag name for the generated xml element. object the object to be written. writer the writer. mPlexAttribute the multiplexer selector attribute name. mPlexValue the multiplexers attribute value corresponding to this object type.

Throws: IOException if an IOError occured. XMLWriterException if an XmlDefinition error occured.