Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.lib.groovy
Class HiveMindBuilder  view HiveMindBuilder download HiveMindBuilder.java

java.lang.Object
  extended bySAXBuilder
      extended byorg.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

Nested Class Summary
private static class HiveMindBuilder.GroovyLocator
           
 
Field Summary
private static java.util.Map CAMEL_TO_HYPHEN_MAP
           
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)
           
private  org.xml.sax.Attributes getHyphenatedAttributes(org.xml.sax.Attributes attributes)
           
private  java.lang.String getHyphenatedName(java.lang.String name)
           
protected  void nodeCompleted(java.lang.Object parent, java.lang.Object node)
           
 
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

CAMEL_TO_HYPHEN_MAP

private static final java.util.Map CAMEL_TO_HYPHEN_MAP
Constructor Detail

HiveMindBuilder

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

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)