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 Details

    • out

      protected IndentPrinter out
      Deprecated.
    • inMixed

      protected boolean inMixed
      Deprecated.
    • qt

      protected String qt
      Deprecated.
    • keywords

      protected Collection<String> keywords
      Deprecated.
  • Constructor Details

    • DomToGroovy

      public DomToGroovy​(PrintWriter out)
      Deprecated.
    • DomToGroovy

      public DomToGroovy​(IndentPrinter out)
      Deprecated.
  • Method Details

    • 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​(File file) throws Exception
      Deprecated.
      Throws:
      Exception
    • parse

      public static Document parse​(Reader input) throws Exception
      Deprecated.
      Throws:
      Exception
    • parse

      public static Document parse​(InputStream input) throws Exception
      Deprecated.
      Throws:
      Exception
    • print

      protected void print​(Node node, Map namespaces, boolean endWithComma)
      Deprecated.
    • 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.
    • escapeQuote

      protected String escapeQuote​(String text)
      Deprecated.
    • defineNamespaces

      protected Map defineNamespaces​(Element element, Map namespaces)
      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.
    • getAttributeValue

      protected String getAttributeValue​(Attr attribute)
      Deprecated.
    • printAttributeWithoutPrefix

      protected boolean printAttributeWithoutPrefix​(Attr attribute, boolean hasAttribute)
      Deprecated.
    • checkEscaping

      protected boolean checkEscaping​(String localName)
      Deprecated.
    • getTextNodeData

      protected String getTextNodeData​(Text node)
      Deprecated.
    • mixedContent

      protected boolean mixedContent​(NodeList list)
      Deprecated.
    • printChildren

      protected void printChildren​(Node parent, Map namespaces)
      Deprecated.
    • getLocalName

      protected String getLocalName​(Node node)
      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.