|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SAX handler for turning XML into Groovy scripts
Field Summary | |
---|---|
boolean |
inMixed
|
List |
keywords
|
IndentPrinter |
out
|
String |
qt
|
Constructor Summary | |
DomToGroovy(PrintWriter out)
|
|
DomToGroovy(IndentPrinter out)
|
Method Summary | |
---|---|
boolean |
checkEscaping(String localName)
|
void |
defineNamespace(Map namespaces, String prefix, String uri)
|
Map |
defineNamespaces(Element element, Map namespaces)
|
String |
escapeQuote(String text)
|
String |
getAttributeValue(Attr attribute)
|
String |
getLocalName(Node node)
|
String |
getTextNodeData(Text node)
|
static void |
main(def args)
|
boolean |
mixedContent(NodeList list)
|
static Document |
parse(String name)
|
void |
print(Document document)
|
void |
print(Node node, Map namespaces, boolean endWithComma)
|
void |
print(String text)
|
void |
printAttributeWithPrefix(Attr attribute, StringBuffer buffer)
|
boolean |
printAttributeWithoutPrefix(Attr attribute, boolean hasAttribute)
|
boolean |
printAttributes(Element element)
|
void |
printChildren(Node parent, Map namespaces)
|
void |
printComment(Comment comment, boolean endWithComma)
|
void |
printElement(Element element, Map namespaces, boolean endWithComma)
|
void |
printEnd(String text, boolean endWithComma)
|
void |
printIndent()
|
void |
printPI(ProcessingInstruction instruction, boolean endWithComma)
|
void |
printQuoted(String text)
|
void |
printText(Text node, boolean endWithComma)
|
void |
println(String text)
|
Constructor Detail |
---|
public DomToGroovy(PrintWriter out)
public DomToGroovy(IndentPrinter out)
Method Detail |
---|
boolean checkEscaping(String localName)
void defineNamespace(Map namespaces, String prefix, String uri)
Map defineNamespaces(Element element, Map namespaces)
String escapeQuote(String text)
String getAttributeValue(Attr attribute)
String getLocalName(Node node)
String getTextNodeData(Text node)
public static void main(def args)
boolean mixedContent(NodeList list)
static Document parse(String name)
public void print(Document document)
void print(Node node, Map namespaces, boolean endWithComma)
void print(String text)
void printAttributeWithPrefix(Attr attribute, StringBuffer buffer)
boolean printAttributeWithoutPrefix(Attr attribute, boolean hasAttribute)
boolean printAttributes(Element element)
void printChildren(Node parent, Map namespaces)
void printComment(Comment comment, boolean endWithComma)
void printElement(Element element, Map namespaces, boolean endWithComma)
void printEnd(String text, boolean endWithComma)
void printIndent()
void printPI(ProcessingInstruction instruction, boolean endWithComma)
void printQuoted(String text)
void printText(Text node, boolean endWithComma)
void println(String text)