oms3.dsl
Class GenericBuilderSupport
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
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
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 |
GenericBuilderSupport
public GenericBuilderSupport()
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
Generated 2010-08-11 08:44:20 MDT, USDA-ARS-ASRU/CSU, 2150 Center Ave, Fort Collins, CO 80526, U.S.A.