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
Fields Modifier and Type Field Description protected boolean
inMixed
Deprecated.protected Collection<String>
keywords
Deprecated.protected IndentPrinter
out
Deprecated.protected String
qt
Deprecated. -
Constructor Summary
Constructors Constructor Description DomToGroovy(IndentPrinter out)
Deprecated.DomToGroovy(PrintWriter out)
Deprecated. -
Method Summary
Modifier and Type Method Description protected boolean
checkEscaping(String localName)
Deprecated.protected void
defineNamespace(Map namespaces, String prefix, String uri)
Deprecated.protected Map
defineNamespaces(Element element, Map namespaces)
Deprecated.protected String
escapeQuote(String text)
Deprecated.protected String
getAttributeValue(Attr attribute)
Deprecated.protected String
getLocalName(Node node)
Deprecated.protected String
getTextNodeData(Text node)
Deprecated.static void
main(String[] args)
Deprecated.protected boolean
mixedContent(NodeList list)
Deprecated.static Document
parse(File file)
Deprecated.static Document
parse(InputStream input)
Deprecated.static Document
parse(Reader input)
Deprecated.protected static Document
parse(String fileName)
Deprecated.protected void
print(String text)
Deprecated.void
print(Document document)
Deprecated.protected void
print(Node node, Map namespaces, boolean endWithComma)
Deprecated.protected boolean
printAttributes(Element element)
Deprecated.protected boolean
printAttributeWithoutPrefix(Attr attribute, boolean hasAttribute)
Deprecated.protected void
printAttributeWithPrefix(Attr attribute, StringBuffer buffer)
Deprecated.protected void
printChildren(Node parent, Map namespaces)
Deprecated.protected void
printComment(Comment comment, boolean endWithComma)
Deprecated.protected void
printElement(Element element, Map namespaces, boolean endWithComma)
Deprecated.protected void
printEnd(String text, boolean endWithComma)
Deprecated.protected void
printIndent()
Deprecated.protected void
println(String text)
Deprecated.protected void
printPI(ProcessingInstruction instruction, boolean endWithComma)
Deprecated.protected void
printQuoted(String text)
Deprecated.protected void
printText(Text node, boolean endWithComma)
Deprecated.
-
Field Details
-
out
Deprecated. -
inMixed
protected boolean inMixedDeprecated. -
qt
Deprecated. -
keywords
Deprecated.
-
-
Constructor Details
-
DomToGroovy
Deprecated. -
DomToGroovy
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.
-