java.lang.Object
SAXBuilder
org.apache.hivemind.lib.groovy.HiveMindBuilder
- public class HiveMindBuilder
- extends 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
| 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
CAMEL_TO_HYPHEN_MAP
private static final java.util.Map CAMEL_TO_HYPHEN_MAP
HiveMindBuilder
public HiveMindBuilder(org.xml.sax.ContentHandler parser)
nodeCompleted
protected void nodeCompleted(java.lang.Object parent,
java.lang.Object node)
doStartElement
protected void doStartElement(java.lang.Object name,
org.xml.sax.Attributes attributes)
getHyphenatedName
private java.lang.String getHyphenatedName(java.lang.String name)
getHyphenatedAttributes
private org.xml.sax.Attributes getHyphenatedAttributes(org.xml.sax.Attributes attributes)