Save This Page
Home » groovy-src-1.6.3 » groovy » xml » [javadoc | source]
groovy.xml
public class: DOMBuilder [javadoc | source]
java.lang.Object
   groovy.lang.GroovyObjectSupport
      groovy.util.BuilderSupport
         groovy.xml.DOMBuilder

All Implemented Interfaces:
    GroovyObject

A helper class for creating a W3C DOM tree
Field Summary
 Document document     
 DocumentBuilder documentBuilder     
Constructor:
 public DOMBuilder(Document document) 
 public DOMBuilder(DocumentBuilder documentBuilder) 
Method from groovy.xml.DOMBuilder Summary:
appendNamespaceAttributes,   createDocument,   createNode,   createNode,   createNode,   createNode,   newInstance,   newInstance,   parse,   parse,   parseText,   setParent
Methods from groovy.util.BuilderSupport:
createNode,   createNode,   createNode,   createNode,   doInvokeMethod,   getCurrent,   getName,   invokeMethod,   invokeMethod,   nodeCompleted,   postNodeCompletion,   setClosureDelegate,   setCurrent,   setParent
Methods from groovy.lang.GroovyObjectSupport:
getMetaClass,   getProperty,   invokeMethod,   setMetaClass,   setProperty
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from groovy.xml.DOMBuilder Detail:
 protected  void appendNamespaceAttributes(Element element,
    Map attributes) 
 protected Document createDocument() 
 protected Object createNode(Object name) 
 protected Object createNode(Object name,
    Object value) 
 protected Object createNode(Object name,
    Map attributes) 
 protected Object createNode(Object name,
    Map attributes,
    Object value) 
 public static DOMBuilder newInstance() throws ParserConfigurationException 
 public static DOMBuilder newInstance(boolean validating,
    boolean namespaceAware) throws ParserConfigurationException 
 public static Document parse(Reader reader) throws IOException, SAXException, ParserConfigurationException 
    Creates a DocumentBuilder and uses it to parse the XML text read from the given reader. A non-validating, namespace aware parser is used.
 public static Document parse(Reader reader,
    boolean validating,
    boolean namespaceAware) throws IOException, SAXException, ParserConfigurationException 
    Creates a DocumentBuilder and uses it to parse the XML text read from the given reader, allowing parser validation and namespace awareness to be controlled.
 public Document parseText(String text) throws IOException, SAXException, ParserConfigurationException 
    A helper method to parse the given text as XML.
 protected  void setParent(Object parent,
    Object child)