public class DomToGroovy
extends java.lang.Object
Constructor and Description |
---|
DomToGroovy(IndentPrinter out) |
DomToGroovy(java.io.PrintWriter out) |
Modifier and Type | Method and Description |
---|---|
protected void |
defineNamespace(java.util.Map namespaces,
java.lang.String prefix,
java.lang.String uri) |
protected java.util.Map |
defineNamespaces(org.w3c.dom.Element element,
java.util.Map namespaces) |
protected java.lang.String |
getLocalName(org.w3c.dom.Node node) |
protected java.lang.String |
getTextNodeData(org.w3c.dom.Text node) |
static void |
main(java.lang.String[] args) |
protected boolean |
mixedContent(org.w3c.dom.NodeList list) |
void |
print(org.w3c.dom.Document document) |
protected void |
print(org.w3c.dom.Node node,
java.util.Map namespaces,
boolean endWithComma) |
protected void |
print(java.lang.String text) |
protected boolean |
printAttributes(org.w3c.dom.Element element) |
protected void |
printChildren(org.w3c.dom.Node parent,
java.util.Map namespaces) |
protected void |
printComment(org.w3c.dom.Comment comment,
boolean endWithComma) |
protected void |
printElement(org.w3c.dom.Element element,
java.util.Map namespaces,
boolean endWithComma) |
protected void |
printEnd(java.lang.String text,
boolean endWithComma) |
protected void |
printIndent() |
protected void |
println(java.lang.String text) |
protected void |
printPI(org.w3c.dom.ProcessingInstruction instruction,
boolean endWithComma) |
protected void |
printText(org.w3c.dom.Text node,
boolean endWithComma) |
public DomToGroovy(java.io.PrintWriter out)
public DomToGroovy(IndentPrinter out)
public void print(org.w3c.dom.Document document)
public static void main(java.lang.String[] args)
protected void print(org.w3c.dom.Node node, java.util.Map namespaces, boolean endWithComma)
protected void printElement(org.w3c.dom.Element element, java.util.Map namespaces, boolean endWithComma)
protected void printPI(org.w3c.dom.ProcessingInstruction instruction, boolean endWithComma)
protected void printComment(org.w3c.dom.Comment comment, boolean endWithComma)
protected void printText(org.w3c.dom.Text node, boolean endWithComma)
protected java.util.Map defineNamespaces(org.w3c.dom.Element element, java.util.Map namespaces)
protected void defineNamespace(java.util.Map namespaces, java.lang.String prefix, java.lang.String uri)
protected boolean printAttributes(org.w3c.dom.Element element)
protected java.lang.String getTextNodeData(org.w3c.dom.Text node)
protected boolean mixedContent(org.w3c.dom.NodeList list)
protected void printChildren(org.w3c.dom.Node parent, java.util.Map namespaces)
protected java.lang.String getLocalName(org.w3c.dom.Node node)
protected void printEnd(java.lang.String text, boolean endWithComma)
protected void println(java.lang.String text)
protected void print(java.lang.String text)
protected void printIndent()