OMS (v3.0.25)

oms3.dsl
Class GenericBuilderSupport

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.util.BuilderSupport
          extended by oms3.dsl.GenericBuilderSupport
All Implemented Interfaces:
groovy.lang.GroovyObject
Direct Known Subclasses:
SimBuilder

public abstract class GenericBuilderSupport
extends groovy.util.BuilderSupport

Generic Builder class. Simplifies the use of Groovy's BuilderSupport API.

Author:
od

Constructor Summary
GenericBuilderSupport()
           
 
Method Summary
protected  java.lang.Object createNode(java.lang.Object name)
           
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map map)
           
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map props, java.lang.Object value)
          Create the nodes.
protected  java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
           
protected abstract  java.lang.Class<? extends Buildable> lookupTopLevel(java.lang.Object name)
          Provide the entry classes for a builder.
protected  void nodeCompleted(java.lang.Object parent, java.lang.Object node)
           
 void setLogging(java.lang.String level)
           
protected  void setParent(java.lang.Object parent, java.lang.Object child)
           
 
Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, 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
 

Constructor Detail

GenericBuilderSupport

public GenericBuilderSupport()
Method Detail

setLogging

public void setLogging(java.lang.String level)

createNode

protected java.lang.Object createNode(java.lang.Object name)
Specified by:
createNode in class groovy.util.BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.lang.Object value)
Specified by:
createNode in class groovy.util.BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map map)
Specified by:
createNode in class groovy.util.BuilderSupport

setParent

protected void setParent(java.lang.Object parent,
                         java.lang.Object child)
Specified by:
setParent in class groovy.util.BuilderSupport

lookupTopLevel

protected abstract java.lang.Class<? extends Buildable> lookupTopLevel(java.lang.Object name)
Provide the entry classes for a builder.

Parameters:
name -
Returns:
the buildable object.

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map props,
                                      java.lang.Object value)
Create the nodes.

Specified by:
createNode in class groovy.util.BuilderSupport
Parameters:
name -
props -
value -
Returns:
the Object the configure.

nodeCompleted

protected void nodeCompleted(java.lang.Object parent,
                             java.lang.Object node)
Overrides:
nodeCompleted in class groovy.util.BuilderSupport

OMS (v3.0.25)

Generated 2010-08-11 08:44:20 MDT, USDA-ARS-ASRU/CSU, 2150 Center Ave, Fort Collins, CO 80526, U.S.A.