|
JCommon 1.0.17-redhat-2 | |||||||||
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(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. |
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(Writer writer) throws IOException
writer
- the writer.
IOException
- if there is an I/O problem.protected void writeStandardComment(Writer writer, Comments comments) throws IOException
writer
- the writer.comments
- a set of comments.
IOException
- if there is an I/O problem.protected void writeComment(Writer writer, String[] comments) throws IOException
writer
- the writer.comments
- the comments (null
ignored).
IOException
- if there is an I/O problem.protected void writeOpenComment(Writer writer, Comments comments) throws IOException
writer
- the writer.comments
- the set of comments.
IOException
- if there is an I/O problem.protected void writeCloseComment(Writer writer, Comments comments) throws IOException
writer
- the writer.comments
- the set of comments.
IOException
- if there is an I/O problem.protected void writeTag(Writer writer, String tagName, AttributeList attributes, Comments comments) throws IOException
writer
- the writer.tagName
- the tag name.attributes
- the attributes.comments
- the comments.
IOException
- if there is an I/O problem.protected void writeTag(Writer writer, String tagName, String attribute, String value, Comments comments) throws IOException
writer
- the writer.tagName
- the tag name.attribute
- the attribute name.value
- the attribute value.comments
- the comments.
IOException
- if there is an I/O problem.public void write(Writer writer) throws IOException
writer
- the writer.
IOException
- if there is an I/O problem.protected void writeManualMapping(Writer writer, ManualMappingInfo mi) throws IOException
writer
- the writer.mi
- the mapping info.
IOException
- if there is an I/O problem.protected void writeMultiplexMapping(Writer writer, MultiplexMappingInfo mi) throws IOException
writer
- the writer.mi
- the mapping info.
IOException
- if there is an I/O problem.protected void writeClassDescription(Writer writer, ClassDescription cd) throws IOException
writer
- the writer.cd
- the class description.
IOException
- if there is an I/O problem.public XMLWriterSupport getWriterSupport()
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |