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 Summary
-
Constructor Summary
Constructors Constructor Description DomToGroovy(groovy.util.IndentPrinter out)Deprecated.DomToGroovy(PrintWriter out)Deprecated. -
Method Summary
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 Details
-
out
protected groovy.util.IndentPrinter outDeprecated. -
inMixed
protected boolean inMixedDeprecated. -
qt
Deprecated. -
keywords
Deprecated.
-
-
Constructor Details
-
DomToGroovy
Deprecated. -
DomToGroovy
public DomToGroovy(groovy.util.IndentPrinter out)Deprecated.
-
-
Method Details
-
print
Deprecated. -
main
Deprecated. -
parse
Deprecated.- Throws:
Exception
-
parse
Deprecated.- Throws:
Exception
-
parse
Deprecated.- Throws:
Exception
-
parse
Deprecated.- Throws:
Exception
-
print
Deprecated. -
printElement
Deprecated. -
printQuoted
Deprecated. -
printPI
Deprecated. -
printComment
Deprecated. -
printText
Deprecated. -
escapeQuote
Deprecated. -
defineNamespaces
Deprecated. -
defineNamespace
Deprecated. -
printAttributes
Deprecated. -
printAttributeWithPrefix
Deprecated. -
getAttributeValue
Deprecated. -
printAttributeWithoutPrefix
Deprecated. -
checkEscaping
Deprecated. -
getTextNodeData
Deprecated. -
mixedContent
Deprecated. -
printChildren
Deprecated. -
getLocalName
Deprecated. -
printEnd
Deprecated. -
println
Deprecated. -
print
Deprecated. -
printIndent
protected void printIndent()Deprecated.
-