Package groovy.xml
Class SAXBuilder
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
groovy.xml.SAXBuilder
- All Implemented Interfaces:
GroovyObject
public class SAXBuilder extends BuilderSupport
A builder for generating W3C SAX events. Use similar to MarkupBuilder.
-
Constructor Summary
Constructors Constructor Description SAXBuilder(ContentHandler handler)
-
Method Summary
Modifier and Type Method Description 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 attributeMap, Object text)
protected void
doStartElement(Object name, Attributes attributes)
protected void
handleException(SAXException e)
protected void
nodeCompleted(Object parent, Object name)
A hook to allow nodes to be processed once they have had all of their children applied.protected void
setParent(Object parent, Object child)
Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, setClosureDelegate, setCurrent
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface groovy.lang.GroovyObject
getProperty, setProperty
-
Constructor Details
-
SAXBuilder
-
-
Method Details
-
setParent
- Specified by:
setParent
in classBuilderSupport
-
createNode
- Specified by:
createNode
in classBuilderSupport
-
createNode
- Specified by:
createNode
in classBuilderSupport
-
createNode
- Specified by:
createNode
in classBuilderSupport
-
doStartElement
-
nodeCompleted
Description copied from class:BuilderSupport
A hook to allow nodes to be processed once they have had all of their children applied.- Overrides:
nodeCompleted
in classBuilderSupport
- Parameters:
parent
- the parent of the node being processedname
- the current node being processed
-
handleException
-
createNode
- Specified by:
createNode
in classBuilderSupport
-