Top Description Fields Constructors Methods
groovy.xml

public Class SAXBuilder

extends BuilderSupport
Class Inheritance
Imports
groovy.lang.Tuple3, groovy.namespace.QName, groovy.util.BuilderSupport, org.xml.sax.Attributes, .ContentHandler, .SAXException, org.xml.sax.helpers.AttributesImpl, java.util.Map

A builder for generating W3C SAX events. Use similar to MarkupBuilder.

Field Summary

Modifier and TypeField and Description
private Attributes
private final ContentHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Object
protected Object
protected Object
createNode(Object name, Map<K, V> attributeMap, Object text)

Implements abstract groovy.util.BuilderSupport.createNode.

protected Object
createNode(Object name, Map<K, V> attributes)

Implements abstract groovy.util.BuilderSupport.createNode.

protected void
doStartElement(Object name, Attributes attributes)

private void
doText(Object value)

private Tuple3<String, String, String>
protected void
protected void
nodeCompleted(Object
the parent of the node being processed
parent
,
Object
the current node being processed
name
)

Overrides groovy.util.BuilderSupport.nodeCompleted.

A hook to allow nodes to be processed once they have had all of their children applied.
protected void
setParent(Object parent, Object child)

Implements abstract groovy.util.BuilderSupport.setParent.

Inherited from groovy.util.BuilderSupport:
doInvokeMethodgetCurrentgetNameinvokeMethodinvokeMethodpostNodeCompletionsetClosureDelegatesetCurrent

Field Detail

emptyAttributesback to summary
private Attributes emptyAttributes
handlerback to summary
private final ContentHandler handler

Constructor Detail

SAXBuilderback to summary
public SAXBuilder(ContentHandler handler)

Method Detail

createNodeback to summary
protected Object createNode(Object name)

Implements abstract groovy.util.BuilderSupport.createNode.

createNodeback to summary
protected Object createNode(Object name, Object value)

Implements abstract groovy.util.BuilderSupport.createNode.

createNodeback to summary
protected Object createNode(Object name, Map<K, V> attributeMap, Object text)

Implements abstract groovy.util.BuilderSupport.createNode.

createNodeback to summary
protected Object createNode(Object name, Map<K, V> attributes)

Implements abstract groovy.util.BuilderSupport.createNode.

doStartElementback to summary
protected void doStartElement(Object name, Attributes attributes)
doTextback to summary
private void doText(Object value)
getNameInfoback to summary
private Tuple3<String, String, String> getNameInfo(Object name)
handleExceptionback to summary
protected void handleException(SAXException e)
nodeCompletedback to summary
protected void nodeCompleted(Object parent, Object name)

Overrides groovy.util.BuilderSupport.nodeCompleted.

Doc from groovy.util.BuilderSupport.nodeCompleted.

A hook to allow nodes to be processed once they have had all of their children applied.

Parameters
parent:Object

the parent of the node being processed

name:Object

the current node being processed

setParentback to summary
protected void setParent(Object parent, Object child)

Implements abstract groovy.util.BuilderSupport.setParent.