Class DomWriter
java.lang.Object
org.mybatis.generator.internal.DomWriter
This class is used to generate a String representation of an XML document. It
is very much based on the class dom.Writer from the Apache Xerces examples,
but I've simplified and updated it.
- Author:
- Andy Clark, IBM (Original work), Jeff Butler (derivation)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetVersion(Document document) Extracts the XML version from the Document.protected voidnormalizeAndPrint(char c, boolean isAttValue) protected voidnormalizeAndPrint(String s, boolean isAttValue) protected Attr[]sortAttributes(NamedNodeMap attrs) protected voidwrite(CDATASection node) protected voidprotected voidprotected voidwrite(DocumentType node) protected voidprotected voidwrite(EntityReference node) protected voidwrite(ProcessingInstruction node) protected voidprotected voidwriteAnyNode(Node node)
-
Field Details
-
printWriter
-
isXML11
protected boolean isXML11
-
-
Constructor Details
-
DomWriter
public DomWriter()
-
-
Method Details
-
toString
- Throws:
ShellException
-
sortAttributes
-
normalizeAndPrint
-
normalizeAndPrint
protected void normalizeAndPrint(char c, boolean isAttValue) -
getVersion
-
writeAnyNode
- Throws:
ShellException
-
write
- Throws:
ShellException
-
write
-
write
- Throws:
ShellException
-
write
-
write
-
write
-
write
-
write
-