Package groovy.xml
Class SAXBuilder
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
groovy.xml.SAXBuilder
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class SAXBuilder
extends groovy.util.BuilderSupport
A builder for generating W3C SAX events. Use similar to MarkupBuilder.
-
Constructor Summary
Constructors Constructor Description SAXBuilder(org.xml.sax.ContentHandler handler) -
Method Summary
Modifier and Type Method Description protected java.lang.ObjectcreateNode(java.lang.Object name)protected java.lang.ObjectcreateNode(java.lang.Object name, java.lang.Object value)protected java.lang.ObjectcreateNode(java.lang.Object name, java.util.Map attributes)protected java.lang.ObjectcreateNode(java.lang.Object name, java.util.Map attributeMap, java.lang.Object text)protected voiddoStartElement(java.lang.Object name, org.xml.sax.Attributes attributes)protected voidhandleException(org.xml.sax.SAXException e)protected voidnodeCompleted(java.lang.Object parent, java.lang.Object name)protected voidsetParent(java.lang.Object parent, java.lang.Object child)Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, setClosureDelegate, setCurrentMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getProperty, setProperty
-
Constructor Details
-
SAXBuilder
public SAXBuilder(org.xml.sax.ContentHandler handler)
-
-
Method Details
-
setParent
protected void setParent(java.lang.Object parent, java.lang.Object child)- Specified by:
setParentin classgroovy.util.BuilderSupport
-
createNode
protected java.lang.Object createNode(java.lang.Object name)- Specified by:
createNodein classgroovy.util.BuilderSupport
-
createNode
protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)- Specified by:
createNodein classgroovy.util.BuilderSupport
-
createNode
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributeMap, java.lang.Object text)- Specified by:
createNodein classgroovy.util.BuilderSupport
-
doStartElement
protected void doStartElement(java.lang.Object name, org.xml.sax.Attributes attributes) -
nodeCompleted
protected void nodeCompleted(java.lang.Object parent, java.lang.Object name)- Overrides:
nodeCompletedin classgroovy.util.BuilderSupport
-
handleException
protected void handleException(org.xml.sax.SAXException e) -
createNode
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)- Specified by:
createNodein classgroovy.util.BuilderSupport
-