|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ibatis.ibator.internal.DomWriter
public class 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 for use with ibator.
Field Summary | |
---|---|
protected boolean |
isXML11
|
protected java.io.PrintWriter |
printWriter
|
Constructor Summary | |
---|---|
DomWriter()
|
Method Summary | |
---|---|
protected java.lang.String |
getVersion(org.w3c.dom.Document document)
Extracts the XML version from the Document. |
protected void |
normalizeAndPrint(char c,
boolean isAttValue)
Normalizes and print the given character. |
protected void |
normalizeAndPrint(java.lang.String s,
boolean isAttValue)
Normalizes and prints the given string. |
protected org.w3c.dom.Attr[] |
sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes. |
java.lang.String |
toString(org.w3c.dom.Document document)
|
protected void |
write(org.w3c.dom.CDATASection node)
|
protected void |
write(org.w3c.dom.Comment node)
|
protected void |
write(org.w3c.dom.Document node)
|
protected void |
write(org.w3c.dom.DocumentType node)
|
protected void |
write(org.w3c.dom.Element node)
|
protected void |
write(org.w3c.dom.EntityReference node)
|
protected void |
write(org.w3c.dom.ProcessingInstruction node)
|
protected void |
write(org.w3c.dom.Text node)
|
protected void |
writeAnyNode(org.w3c.dom.Node node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.PrintWriter printWriter
protected boolean isXML11
Constructor Detail |
---|
public DomWriter()
Method Detail |
---|
public java.lang.String toString(org.w3c.dom.Document document) throws ShellException
ShellException
protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
protected void normalizeAndPrint(java.lang.String s, boolean isAttValue)
protected void normalizeAndPrint(char c, boolean isAttValue)
protected java.lang.String getVersion(org.w3c.dom.Document document)
protected void writeAnyNode(org.w3c.dom.Node node) throws ShellException
ShellException
protected void write(org.w3c.dom.Document node) throws ShellException
ShellException
protected void write(org.w3c.dom.DocumentType node) throws ShellException
ShellException
protected void write(org.w3c.dom.Element node) throws ShellException
ShellException
protected void write(org.w3c.dom.EntityReference node)
protected void write(org.w3c.dom.CDATASection node)
protected void write(org.w3c.dom.Text node)
protected void write(org.w3c.dom.ProcessingInstruction node)
protected void write(org.w3c.dom.Comment node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |