Package org.codehaus.groovy.tools.xml
Class DomToGroovy
- java.lang.Object
- 
- org.codehaus.groovy.tools.xml.DomToGroovy
 
- 
 @Deprecated public class DomToGroovy extends Object Deprecated.A SAX handler for turning XML into Groovy scripts
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleaninMixedDeprecated.protected Collection<String>keywordsDeprecated.protected IndentPrinteroutDeprecated.protected StringqtDeprecated.
 - 
Constructor SummaryConstructors Constructor Description DomToGroovy(IndentPrinter out)Deprecated.DomToGroovy(PrintWriter out)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleancheckEscaping(String localName)Deprecated.protected voiddefineNamespace(Map namespaces, String prefix, String uri)Deprecated.protected MapdefineNamespaces(Element element, Map namespaces)Deprecated.protected StringescapeQuote(String text)Deprecated.protected StringgetAttributeValue(Attr attribute)Deprecated.protected StringgetLocalName(Node node)Deprecated.protected StringgetTextNodeData(Text node)Deprecated.static voidmain(String[] args)Deprecated.protected booleanmixedContent(NodeList list)Deprecated.static Documentparse(File file)Deprecated.static Documentparse(InputStream input)Deprecated.static Documentparse(Reader input)Deprecated.protected static Documentparse(String fileName)Deprecated.protected voidprint(String text)Deprecated.voidprint(Document document)Deprecated.protected voidprint(Node node, Map namespaces, boolean endWithComma)Deprecated.protected booleanprintAttributes(Element element)Deprecated.protected booleanprintAttributeWithoutPrefix(Attr attribute, boolean hasAttribute)Deprecated.protected voidprintAttributeWithPrefix(Attr attribute, StringBuffer buffer)Deprecated.protected voidprintChildren(Node parent, Map namespaces)Deprecated.protected voidprintComment(Comment comment, boolean endWithComma)Deprecated.protected voidprintElement(Element element, Map namespaces, boolean endWithComma)Deprecated.protected voidprintEnd(String text, boolean endWithComma)Deprecated.protected voidprintIndent()Deprecated.protected voidprintln(String text)Deprecated.protected voidprintPI(ProcessingInstruction instruction, boolean endWithComma)Deprecated.protected voidprintQuoted(String text)Deprecated.protected voidprintText(Text node, boolean endWithComma)Deprecated.
 
- 
- 
- 
Field Detail- 
outprotected IndentPrinter out Deprecated.
 - 
inMixedprotected boolean inMixed Deprecated.
 - 
qtprotected String qt Deprecated.
 - 
keywordsprotected Collection<String> keywords Deprecated.
 
- 
 - 
Constructor Detail- 
DomToGroovypublic DomToGroovy(PrintWriter out) Deprecated.
 - 
DomToGroovypublic DomToGroovy(IndentPrinter out) Deprecated.
 
- 
 - 
Method Detail- 
printpublic void print(Document document) Deprecated.
 - 
mainpublic static void main(String[] args) Deprecated.
 - 
parseprotected static Document parse(String fileName) throws Exception Deprecated.- Throws:
- Exception
 
 - 
parsepublic static Document parse(InputStream input) throws Exception Deprecated.- Throws:
- Exception
 
 - 
printElementprotected void printElement(Element element, Map namespaces, boolean endWithComma) Deprecated.
 - 
printQuotedprotected void printQuoted(String text) Deprecated.
 - 
printPIprotected void printPI(ProcessingInstruction instruction, boolean endWithComma) Deprecated.
 - 
printCommentprotected void printComment(Comment comment, boolean endWithComma) Deprecated.
 - 
printTextprotected void printText(Text node, boolean endWithComma) Deprecated.
 - 
defineNamespaceprotected void defineNamespace(Map namespaces, String prefix, String uri) Deprecated.
 - 
printAttributesprotected boolean printAttributes(Element element) Deprecated.
 - 
printAttributeWithPrefixprotected void printAttributeWithPrefix(Attr attribute, StringBuffer buffer) Deprecated.
 - 
printAttributeWithoutPrefixprotected boolean printAttributeWithoutPrefix(Attr attribute, boolean hasAttribute) Deprecated.
 - 
checkEscapingprotected boolean checkEscaping(String localName) Deprecated.
 - 
mixedContentprotected boolean mixedContent(NodeList list) Deprecated.
 - 
printEndprotected void printEnd(String text, boolean endWithComma) Deprecated.
 - 
printlnprotected void println(String text) Deprecated.
 - 
printprotected void print(String text) Deprecated.
 - 
printIndentprotected void printIndent() Deprecated.
 
- 
 
-