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 booleaninMixedDeprecated.protected Collection<String>keywordsDeprecated.protected IndentPrinteroutDeprecated.protected StringqtDeprecated.
-
Constructor Summary
Constructors Constructor Description DomToGroovy(IndentPrinter out)Deprecated.DomToGroovy(PrintWriter out)Deprecated.
-
Method Summary
All 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
-
out
protected IndentPrinter out
Deprecated.
-
inMixed
protected boolean inMixed
Deprecated.
-
qt
protected String qt
Deprecated.
-
keywords
protected Collection<String> keywords
Deprecated.
-
-
Constructor Detail
-
DomToGroovy
public DomToGroovy(PrintWriter out)
Deprecated.
-
DomToGroovy
public DomToGroovy(IndentPrinter out)
Deprecated.
-
-
Method Detail
-
print
public void print(Document document)
Deprecated.
-
main
public static void main(String[] args)
Deprecated.
-
parse
protected static Document parse(String fileName) throws Exception
Deprecated.- Throws:
Exception
-
parse
public static Document parse(InputStream input) throws Exception
Deprecated.- Throws:
Exception
-
printElement
protected void printElement(Element element, Map namespaces, boolean endWithComma)
Deprecated.
-
printQuoted
protected void printQuoted(String text)
Deprecated.
-
printPI
protected void printPI(ProcessingInstruction instruction, boolean endWithComma)
Deprecated.
-
printComment
protected void printComment(Comment comment, boolean endWithComma)
Deprecated.
-
printText
protected void printText(Text node, boolean endWithComma)
Deprecated.
-
defineNamespace
protected void defineNamespace(Map namespaces, String prefix, String uri)
Deprecated.
-
printAttributes
protected boolean printAttributes(Element element)
Deprecated.
-
printAttributeWithPrefix
protected void printAttributeWithPrefix(Attr attribute, StringBuffer buffer)
Deprecated.
-
printAttributeWithoutPrefix
protected boolean printAttributeWithoutPrefix(Attr attribute, boolean hasAttribute)
Deprecated.
-
checkEscaping
protected boolean checkEscaping(String localName)
Deprecated.
-
mixedContent
protected boolean mixedContent(NodeList list)
Deprecated.
-
printEnd
protected void printEnd(String text, boolean endWithComma)
Deprecated.
-
println
protected void println(String text)
Deprecated.
-
print
protected void print(String text)
Deprecated.
-
printIndent
protected void printIndent()
Deprecated.
-
-