|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.xml.generator.ModelWriter
public class ModelWriter
A model writer.
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(java.io.Writer writer)
Writes a model to the specified writer. |
protected void |
writeClassDescription(java.io.Writer writer,
ClassDescription cd)
Writes a class description. |
protected void |
writeCloseComment(java.io.Writer writer,
Comments comments)
Writes the close comments from a set of comments. |
protected void |
writeComment(java.io.Writer writer,
java.lang.String[] comments)
Writes a sequence of comments. |
protected void |
writeManualMapping(java.io.Writer writer,
ManualMappingInfo mi)
Writes a manual mapping to the XML output. |
protected void |
writeMultiplexMapping(java.io.Writer writer,
MultiplexMappingInfo mi)
Writes a multiplex mapping to the XML output. |
protected void |
writeOpenComment(java.io.Writer writer,
Comments comments)
Writes the open comments from a set of comments. |
protected void |
writeStandardComment(java.io.Writer writer,
Comments comments)
Writes a set of 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)
Writes an XML header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelWriter()
Method Detail |
---|
public static SafeTagList getSafeTags()
public DescriptionModel getModel()
public void setModel(DescriptionModel model)
model
- the model.public static void writeXMLHeader(java.io.Writer writer) throws java.io.IOException
writer
- the writer.
java.io.IOException
- if there is an I/O problem.protected void writeStandardComment(java.io.Writer writer, Comments comments) throws java.io.IOException
writer
- the writer.comments
- a set of comments.
java.io.IOException
- if there is an I/O problem.protected void writeComment(java.io.Writer writer, java.lang.String[] comments) throws java.io.IOException
writer
- the writer.comments
- the comments (null
ignored).
java.io.IOException
- if there is an I/O problem.protected void writeOpenComment(java.io.Writer writer, Comments comments) throws java.io.IOException
writer
- the writer.comments
- the set of comments.
java.io.IOException
- if there is an I/O problem.protected void writeCloseComment(java.io.Writer writer, Comments comments) throws java.io.IOException
writer
- the writer.comments
- the set of comments.
java.io.IOException
- if there is an I/O problem.protected void writeTag(java.io.Writer writer, java.lang.String tagName, AttributeList attributes, Comments comments) throws java.io.IOException
writer
- the writer.tagName
- the tag name.attributes
- the attributes.comments
- the comments.
java.io.IOException
- if there is an I/O problem.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
writer
- the writer.tagName
- the tag name.attribute
- the attribute name.value
- the attribute value.comments
- the comments.
java.io.IOException
- if there is an I/O problem.public void write(java.io.Writer writer) throws java.io.IOException
writer
- the writer.
java.io.IOException
- if there is an I/O problem.protected void writeManualMapping(java.io.Writer writer, ManualMappingInfo mi) throws java.io.IOException
writer
- the writer.mi
- the mapping info.
java.io.IOException
- if there is an I/O problem.protected void writeMultiplexMapping(java.io.Writer writer, MultiplexMappingInfo mi) throws java.io.IOException
writer
- the writer.mi
- the mapping info.
java.io.IOException
- if there is an I/O problem.protected void writeClassDescription(java.io.Writer writer, ClassDescription cd) throws java.io.IOException
writer
- the writer.cd
- the class description.
java.io.IOException
- if there is an I/O problem.public XMLWriterSupport getWriterSupport()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |