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 SummaryConstructors Constructor Description SAXBuilder(org.xml.sax.ContentHandler handler)
- 
Method SummaryModifier 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)A hook to allow nodes to be processed once they have had all of their children applied.protected voidsetParent(java.lang.Object parent, java.lang.Object child)Methods inherited from class groovy.util.BuilderSupportdoInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, setClosureDelegate, setCurrentMethods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, setMetaClassMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectgetProperty, setProperty
- 
Constructor Details- 
SAXBuilderpublic SAXBuilder(org.xml.sax.ContentHandler handler)
 
- 
- 
Method Details- 
setParentprotected void setParent(java.lang.Object parent, java.lang.Object child)- Specified by:
- setParentin class- BuilderSupport
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name)- Specified by:
- createNodein class- BuilderSupport
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)- Specified by:
- createNodein class- BuilderSupport
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name, java.util.Map attributeMap, java.lang.Object text)- Specified by:
- createNodein class- BuilderSupport
 
- 
doStartElementprotected void doStartElement(java.lang.Object name, org.xml.sax.Attributes attributes)
- 
nodeCompletedprotected void nodeCompleted(java.lang.Object parent, java.lang.Object name)Description copied from class:BuilderSupportA hook to allow nodes to be processed once they have had all of their children applied.- Overrides:
- nodeCompletedin class- BuilderSupport
- Parameters:
- parent- the parent of the node being processed
- name- the current node being processed
 
- 
handleExceptionprotected void handleException(org.xml.sax.SAXException e)
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)- Specified by:
- createNodein class- BuilderSupport
 
 
-