org.jfree.xml.generator
public class ModelWriter extends Object
Constructor Summary | |
---|---|
ModelWriter()
Creates a new model writer instance. |
Method Summary | |
---|---|
DescriptionModel | getModel()
Returns the model.
|
static SafeTagList | getSafeTags()
Returns the safe tag list.
|
XMLWriterSupport | getWriterSupport()
Returns the writer support object.
|
void | setModel(DescriptionModel model)
Sets the model to be written.
|
void | write(Writer writer)
Writes a model to the specified writer.
|
protected void | writeClassDescription(Writer writer, ClassDescription cd)
Writes a class description.
|
protected void | writeCloseComment(Writer writer, Comments comments)
Writes the close comments from a set of comments.
|
protected void | writeComment(Writer writer, String[] comments)
Writes a sequence of comments.
|
protected void | writeManualMapping(Writer writer, ManualMappingInfo mi)
Writes a manual mapping to the XML output.
|
protected void | writeMultiplexMapping(Writer writer, MultiplexMappingInfo mi)
Writes a multiplex mapping to the XML output.
|
protected void | writeOpenComment(Writer writer, Comments comments)
Writes the open comments from a set of comments.
|
protected void | writeStandardComment(Writer writer, Comments comments)
Writes a set of comments.
|
protected void | writeTag(Writer writer, String tagName, AttributeList attributes, Comments comments)
Writes a closed (short) tag with eventually nested comments.
|
protected void | writeTag(Writer writer, String tagName, String attribute, String value, Comments comments)
Writes a closed (short) tag with eventually nested comments.
|
static void | writeXMLHeader(Writer writer)
Writes an XML header.
|
Returns: The model.
Returns: The safe tag list.
Returns: The writer support object.
Parameters: model the model.
Parameters: writer the writer.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. cd the class description.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. comments the set of comments.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. comments the comments (null
ignored).
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. mi the mapping info.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. mi the mapping info.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. comments the set of comments.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. comments a set of comments.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. tagName the tag name. attributes the attributes. comments the comments.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer. tagName the tag name. attribute the attribute name. value the attribute value. comments the comments.
Throws: IOException if there is an I/O problem.
Parameters: writer the writer.
Throws: IOException if there is an I/O problem.