org.apache.hivemind.lib.groovy
Class HiveMindBuilder

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.util.BuilderSupport
          extended by groovy.xml.SAXBuilder
              extended by 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

Field Summary
static org.xml.sax.Locator GROOVY_LOCATOR
           
 
Constructor Summary
HiveMindBuilder(org.xml.sax.ContentHandler parser)
           
 
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
 

Field Detail

GROOVY_LOCATOR

public static final org.xml.sax.Locator GROOVY_LOCATOR
Constructor Detail

HiveMindBuilder

public HiveMindBuilder(org.xml.sax.ContentHandler parser)
Method Detail

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