A model writer.
write
public void write(Writer writer)
throws IOException
Writes a model to the specified writer.
writeClassDescription
protected void writeClassDescription(Writer writer,
ClassDescription cd)
throws IOException
Writes a class description.
writer
- the writer.cd
- the class description.
writeCloseComment
protected void writeCloseComment(Writer writer,
Comments comments)
throws IOException
Writes the close comments from a set of comments.
writer
- the writer.comments
- the set of comments.
writeComment
protected void writeComment(Writer writer,
String[] comments)
throws IOException
Writes a sequence of comments.
writer
- the writer.comments
- the comments (null
ignored).
writeManualMapping
protected void writeManualMapping(Writer writer,
ManualMappingInfo mi)
throws IOException
Writes a manual mapping to the XML output.
writer
- the writer.mi
- the mapping info.
writeMultiplexMapping
protected void writeMultiplexMapping(Writer writer,
MultiplexMappingInfo mi)
throws IOException
Writes a multiplex mapping to the XML output.
writer
- the writer.mi
- the mapping info.
writeOpenComment
protected void writeOpenComment(Writer writer,
Comments comments)
throws IOException
Writes the open comments from a set of comments.
writer
- the writer.comments
- the set of comments.
writeStandardComment
protected void writeStandardComment(Writer writer,
Comments comments)
throws IOException
Writes a set of comments.
writer
- the writer.comments
- a set of comments.
writeTag
protected void writeTag(Writer writer,
String tagName,
String attribute,
String value,
Comments comments)
throws IOException
Writes a closed (short) tag with eventually nested comments.
writer
- the writer.tagName
- the tag name.attribute
- the attribute name.value
- the attribute value.comments
- the comments.
writeTag
protected void writeTag(Writer writer,
String tagName,
AttributeList attributes,
Comments comments)
throws IOException
Writes a closed (short) tag with eventually nested comments.
writer
- the writer.tagName
- the tag name.attributes
- the attributes.comments
- the comments.
writeXMLHeader
public static void writeXMLHeader(Writer writer)
throws IOException
Writes an XML header.