Package org.codehaus.groovy.tools.xml
Class DomToGroovy
java.lang.Object
org.codehaus.groovy.tools.xml.DomToGroovy
@Deprecated
public class DomToGroovy
extends java.lang.Object
Deprecated.
A SAX handler for turning XML into Groovy scripts
- 
Field SummaryFields Modifier and Type Field Description protected booleaninMixedDeprecated.protected java.util.Collection<java.lang.String>keywordsDeprecated.protected IndentPrinteroutDeprecated.protected java.lang.StringqtDeprecated.
- 
Constructor SummaryConstructors Constructor Description DomToGroovy(IndentPrinter out)Deprecated.DomToGroovy(java.io.PrintWriter out)Deprecated.
- 
Method SummaryModifier and Type Method Description protected booleancheckEscaping(java.lang.String localName)Deprecated.protected voiddefineNamespace(java.util.Map namespaces, java.lang.String prefix, java.lang.String uri)Deprecated.protected java.util.MapdefineNamespaces(org.w3c.dom.Element element, java.util.Map namespaces)Deprecated.protected java.lang.StringescapeQuote(java.lang.String text)Deprecated.protected java.lang.StringgetAttributeValue(org.w3c.dom.Attr attribute)Deprecated.protected java.lang.StringgetLocalName(org.w3c.dom.Node node)Deprecated.protected java.lang.StringgetTextNodeData(org.w3c.dom.Text node)Deprecated.static voidmain(java.lang.String[] args)Deprecated.protected booleanmixedContent(org.w3c.dom.NodeList list)Deprecated.static org.w3c.dom.Documentparse(java.io.File file)Deprecated.static org.w3c.dom.Documentparse(java.io.InputStream input)Deprecated.static org.w3c.dom.Documentparse(java.io.Reader input)Deprecated.protected static org.w3c.dom.Documentparse(java.lang.String fileName)Deprecated.protected voidprint(java.lang.String text)Deprecated.voidprint(org.w3c.dom.Document document)Deprecated.protected voidprint(org.w3c.dom.Node node, java.util.Map namespaces, boolean endWithComma)Deprecated.protected booleanprintAttributes(org.w3c.dom.Element element)Deprecated.protected booleanprintAttributeWithoutPrefix(org.w3c.dom.Attr attribute, boolean hasAttribute)Deprecated.protected voidprintAttributeWithPrefix(org.w3c.dom.Attr attribute, java.lang.StringBuffer buffer)Deprecated.protected voidprintChildren(org.w3c.dom.Node parent, java.util.Map namespaces)Deprecated.protected voidprintComment(org.w3c.dom.Comment comment, boolean endWithComma)Deprecated.protected voidprintElement(org.w3c.dom.Element element, java.util.Map namespaces, boolean endWithComma)Deprecated.protected voidprintEnd(java.lang.String text, boolean endWithComma)Deprecated.protected voidprintIndent()Deprecated.protected voidprintln(java.lang.String text)Deprecated.protected voidprintPI(org.w3c.dom.ProcessingInstruction instruction, boolean endWithComma)Deprecated.protected voidprintQuoted(java.lang.String text)Deprecated.protected voidprintText(org.w3c.dom.Text node, boolean endWithComma)Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
outDeprecated.
- 
inMixedprotected boolean inMixedDeprecated.
- 
qtprotected java.lang.String qtDeprecated.
- 
keywordsprotected java.util.Collection<java.lang.String> keywordsDeprecated.
 
- 
- 
Constructor Details- 
DomToGroovypublic DomToGroovy(java.io.PrintWriter out)Deprecated.
- 
DomToGroovyDeprecated.
 
- 
- 
Method Details- 
printpublic void print(org.w3c.dom.Document document)Deprecated.
- 
mainpublic static void main(java.lang.String[] args)Deprecated.
- 
parseprotected static org.w3c.dom.Document parse(java.lang.String fileName) throws java.lang.ExceptionDeprecated.- Throws:
- java.lang.Exception
 
- 
parsepublic static org.w3c.dom.Document parse(java.io.File file) throws java.lang.ExceptionDeprecated.- Throws:
- java.lang.Exception
 
- 
parsepublic static org.w3c.dom.Document parse(java.io.Reader input) throws java.lang.ExceptionDeprecated.- Throws:
- java.lang.Exception
 
- 
parsepublic static org.w3c.dom.Document parse(java.io.InputStream input) throws java.lang.ExceptionDeprecated.- Throws:
- java.lang.Exception
 
- 
printprotected void print(org.w3c.dom.Node node, java.util.Map namespaces, boolean endWithComma)Deprecated.
- 
printElementprotected void printElement(org.w3c.dom.Element element, java.util.Map namespaces, boolean endWithComma)Deprecated.
- 
printQuotedprotected void printQuoted(java.lang.String text)Deprecated.
- 
printPIprotected void printPI(org.w3c.dom.ProcessingInstruction instruction, boolean endWithComma)Deprecated.
- 
printCommentprotected void printComment(org.w3c.dom.Comment comment, boolean endWithComma)Deprecated.
- 
printTextprotected void printText(org.w3c.dom.Text node, boolean endWithComma)Deprecated.
- 
escapeQuoteprotected java.lang.String escapeQuote(java.lang.String text)Deprecated.
- 
defineNamespacesprotected java.util.Map defineNamespaces(org.w3c.dom.Element element, java.util.Map namespaces)Deprecated.
- 
defineNamespaceprotected void defineNamespace(java.util.Map namespaces, java.lang.String prefix, java.lang.String uri)Deprecated.
- 
printAttributesprotected boolean printAttributes(org.w3c.dom.Element element)Deprecated.
- 
printAttributeWithPrefixprotected void printAttributeWithPrefix(org.w3c.dom.Attr attribute, java.lang.StringBuffer buffer)Deprecated.
- 
getAttributeValueprotected java.lang.String getAttributeValue(org.w3c.dom.Attr attribute)Deprecated.
- 
printAttributeWithoutPrefixprotected boolean printAttributeWithoutPrefix(org.w3c.dom.Attr attribute, boolean hasAttribute)Deprecated.
- 
checkEscapingprotected boolean checkEscaping(java.lang.String localName)Deprecated.
- 
getTextNodeDataprotected java.lang.String getTextNodeData(org.w3c.dom.Text node)Deprecated.
- 
mixedContentprotected boolean mixedContent(org.w3c.dom.NodeList list)Deprecated.
- 
printChildrenprotected void printChildren(org.w3c.dom.Node parent, java.util.Map namespaces)Deprecated.
- 
getLocalNameprotected java.lang.String getLocalName(org.w3c.dom.Node node)Deprecated.
- 
printEndprotected void printEnd(java.lang.String text, boolean endWithComma)Deprecated.
- 
printlnprotected void println(java.lang.String text)Deprecated.
- 
printprotected void print(java.lang.String text)Deprecated.
- 
printIndentprotected void printIndent()Deprecated.
 
-