|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.xtm.XtmSerializer
public class XtmSerializer
A serialization processor to convert an XTM Document object to XTM syntax. Writes an XtmNode object to an output stream or file.
Constants| Field Summary | |
|---|---|
protected boolean |
cleanCommentWS
|
static String |
DEFAULT_ENCODING
Default XML Encoding |
static String |
DTD_directory
A String containing the default path to a local directory containing DTDs. |
static boolean |
includeDOCTYPE
When true, include the DOCTYPE declaration for XTM. |
String |
systemId
Default system identifier for DOCTYPE declaration. |
static String |
XMLNS_xlink
A String containing the XML Namespace URI for XLink. |
| Constructor Summary | |
|---|---|
XtmSerializer()
Default constructor. |
|
| Method Summary | |
|---|---|
protected String |
normalize(String s)
Normalizes the given string. |
String |
status()
Returns a status message String indicating the number of topics and associations in this XtmDocument. |
protected void |
write(XtmNode node,
int nest)
Recursively writes the specified Node. |
void |
write(XtmNode node,
String sysid,
String encoding)
Writes the specified XtmNode (generally an XtmDocument) to the system identifier provided, using the encoding provided (default if null). |
void |
write(XtmNode node,
Writer writer)
Writes the specified XtmNode (generally an XtmDocument, though this is not required) with the Writer provided, using the default encoding. |
protected void |
writeAssociationNode(XtmNode node,
int nest)
Writes an XtmAssociation Node. |
protected void |
writeBaseNameNode(XtmNode node,
int nest)
Writes an XtmBaseName Node. |
protected void |
writeCommentNode(XtmNode node,
int nest)
Writes an XtmComment Node. |
protected void |
writeDocumentNode(XtmNode node,
int nest)
Writes an XtmDocument Node. |
protected void |
writeMemberNode(XtmNode node,
int nest)
Writes an XtmMember Node. |
protected void |
writeOccurrenceNode(XtmNode node,
int nest)
Writes an XtmOccurrence Node. |
protected void |
writeParametersNode(XtmNode node,
int nest)
Writes an XtmParameters Node. |
protected void |
writeProcessingInstructions(XtmNode node,
int nest)
Writes any processing instructions contained within the provided node. |
protected void |
writeResourceDataNode(XtmNode node,
int nest)
Writes an XtmResourceData Node. |
protected void |
writeScopeNode(XtmNode node,
int nest)
Writes an XtmScope Node. |
protected void |
writeTopicMapNode(XtmNode node,
int nest)
Writes an XtmTopicMap Node. |
protected void |
writeTopicNode(XtmNode node,
int nest)
Writes an XtmTopic Node. |
protected void |
writeVariantNode(XtmNode node,
int nest)
Writes an XtmVariant Node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XMLNS_xlink
public static final String DEFAULT_ENCODING
public static String DTD_directory
public static boolean includeDOCTYPE
public String systemId
protected boolean cleanCommentWS
| Constructor Detail |
|---|
public XtmSerializer()
| Method Detail |
|---|
public void write(XtmNode node,
Writer writer)
throws XtmException
XtmException
public void write(XtmNode node,
String sysid,
String encoding)
throws XtmException
XtmException
protected void write(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeDocumentNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeCommentNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeTopicMapNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeProcessingInstructions(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeTopicNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeAssociationNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeMemberNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeBaseNameNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeOccurrenceNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeResourceDataNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeScopeNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeVariantNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmException
protected void writeParametersNode(XtmNode node,
int nest)
throws IOException,
XtmException
IOException
XtmExceptionpublic String status()
protected String normalize(String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||