public class ModelWriter extends Object
Constructor and Description |
---|
ModelWriter()
Creates a new model writer instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2001–2018 JFree.org. All rights reserved.