org.jfree.xml.generator
Class ModelWriter

java.lang.Object
  extended byorg.jfree.xml.generator.ModelWriter
Direct Known Subclasses:
SplittingModelWriter

public class ModelWriter
extends java.lang.Object


Constructor Summary
ModelWriter()
           
 
Method Summary
 DescriptionModel getModel()
           
static SafeTagList getSafeTags()
           
 XMLWriterSupport getWriterSupport()
           
 void setModel(DescriptionModel model)
           
 void write(java.io.Writer writer)
           
protected  void writeClassDescription(java.io.Writer writer, ClassDescription cd)
           
protected  void writeCloseComment(java.io.Writer writer, Comments comments)
           
protected  void writeComment(java.io.Writer writer, java.lang.String[] comments)
           
protected  void writeManualMapping(java.io.Writer writer, ManualMappingInfo mi)
           
protected  void writeMultiplexMapping(java.io.Writer writer, MultiplexMappingInfo mi)
           
protected  void writeOpenComment(java.io.Writer writer, Comments comments)
           
protected  void writeStandardComment(java.io.Writer writer, Comments comments)
           
protected  void writeTag(java.io.Writer writer, java.lang.String tagName, AttributeList attributes, Comments comments)
          Writes a closed (short) tag with eventually nested comments.
protected  void writeTag(java.io.Writer writer, java.lang.String tagName, java.lang.String attribute, java.lang.String value, Comments comments)
          Writes a closed (short) tag with eventually nested comments.
static void writeXMLHeader(java.io.Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelWriter

public ModelWriter()
Method Detail

getSafeTags

public static SafeTagList getSafeTags()

getModel

public DescriptionModel getModel()

setModel

public void setModel(DescriptionModel model)

writeXMLHeader

public static void writeXMLHeader(java.io.Writer writer)
                           throws java.io.IOException
Throws:
java.io.IOException

writeStandardComment

protected void writeStandardComment(java.io.Writer writer,
                                    Comments comments)
                             throws java.io.IOException
Throws:
java.io.IOException

writeComment

protected void writeComment(java.io.Writer writer,
                            java.lang.String[] comments)
                     throws java.io.IOException
Throws:
java.io.IOException

writeOpenComment

protected void writeOpenComment(java.io.Writer writer,
                                Comments comments)
                         throws java.io.IOException
Throws:
java.io.IOException

writeCloseComment

protected void writeCloseComment(java.io.Writer writer,
                                 Comments comments)
                          throws java.io.IOException
Throws:
java.io.IOException

writeTag

protected void writeTag(java.io.Writer writer,
                        java.lang.String tagName,
                        AttributeList attributes,
                        Comments comments)
                 throws java.io.IOException
Writes a closed (short) tag with eventually nested comments.

Parameters:
writer -
tagName -
attributes -
comments -
Throws:
java.io.IOException

writeTag

protected void writeTag(java.io.Writer writer,
                        java.lang.String tagName,
                        java.lang.String attribute,
                        java.lang.String value,
                        Comments comments)
                 throws java.io.IOException
Writes a closed (short) tag with eventually nested comments.

Parameters:
writer -
tagName -
attribute -
value -
comments -
Throws:
java.io.IOException

write

public void write(java.io.Writer writer)
           throws java.io.IOException
Throws:
java.io.IOException

writeManualMapping

protected void writeManualMapping(java.io.Writer writer,
                                  ManualMappingInfo mi)
                           throws java.io.IOException
Throws:
java.io.IOException

writeMultiplexMapping

protected void writeMultiplexMapping(java.io.Writer writer,
                                     MultiplexMappingInfo mi)
                              throws java.io.IOException
Throws:
java.io.IOException

writeClassDescription

protected void writeClassDescription(java.io.Writer writer,
                                     ClassDescription cd)
                              throws java.io.IOException
Throws:
java.io.IOException

getWriterSupport

public XMLWriterSupport getWriterSupport()