Package org.jfree.xml.writer
Interface XmlWriteHandler
- All Known Implementing Classes:
AbstractXmlWriteHandler,BasicStrokeWriteHandler,ColorWriteHandler,FontWriteHandler,GenericWriteHandler,GradientPaintWriteHandler,InsetsWriteHandler,ListWriteHandler,Point2DWriteHandler,Rectangle2DWriteHandler,RenderingHintsWriteHandler
public interface XmlWriteHandler
The interface that must be supported by all XML write handlers.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the root handler for this write handler.voidsetRootHandler(RootXmlWriteHandler rootHandler) Sets the root handler.voidPerforms the writing of a single object.
-
Method Details
-
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
Sets the root handler.- Parameters:
rootHandler- the root handler.
-
write
void write(String tagName, Object object, XMLWriter writer, String mPlexAttribute, String mPlexValue) throws IOException, XMLWriterException 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.
-