org.apache.hivemind.lib.groovy
Class HiveMindBuilder
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
groovy.xml.SAXBuilder
org.apache.hivemind.lib.groovy.HiveMindBuilder
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class HiveMindBuilder
- extends groovy.xml.SAXBuilder
The HiveMindBuilder is a groovy markup builder
which can be used to define HiveMind
module descriptors
using a Groovy script. A
single Groovy script must only define one module descriptor.
The markup in the Groovy script is equivalent to the XML markup for module descriptors. The only
difference being that any dashes in element names and attribute names (which would confuse the
Groovy parser) are replaced by a camelCase notation. So for example
configuration-point
becomes configurationPoint
in a Groovy script.
- Since:
- 1.1
- Author:
- Knut Wannheden
Method Summary |
protected void |
doStartElement(java.lang.Object name,
org.xml.sax.Attributes attributes)
|
protected void |
nodeCompleted(java.lang.Object parent,
java.lang.Object node)
|
Methods inherited from class groovy.xml.SAXBuilder |
createNode, createNode, createNode, createNode, handleException, setParent |
Methods inherited from class groovy.util.BuilderSupport |
doInvokeMethod, getCurrent, getName, invokeMethod, setClosureDelegate, setCurrent |
Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, getProperty, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GROOVY_LOCATOR
public static final org.xml.sax.Locator GROOVY_LOCATOR
HiveMindBuilder
public HiveMindBuilder(org.xml.sax.ContentHandler parser)
nodeCompleted
protected void nodeCompleted(java.lang.Object parent,
java.lang.Object node)
- Overrides:
nodeCompleted
in class groovy.xml.SAXBuilder
doStartElement
protected void doStartElement(java.lang.Object name,
org.xml.sax.Attributes attributes)
- Overrides:
doStartElement
in class groovy.xml.SAXBuilder