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