|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BuilderNode
In a groovy node builder environment, there is often one class per node that is possible in a builder. This interface provides the necessary validation and interaction methods for the mediator (The GroovyNodeBuilder object) to figure out who should handle what.
| Method Summary | |
|---|---|
Object |
createNewNode(Object current,
Map attributes)
Execute the handler for the given node builder. |
String |
getNodeName()
Retrieve the name of the node. |
Set |
getSupportedAttributes()
Retrieve a map of supported attribute names. |
void |
validateScriptedAttributes(Map specifiedAttributes)
Validates a given map of attributes as supplied by the GroovyNodeBuilder against the node's supported attributes. |
| Method Detail |
|---|
String getNodeName()
Set getSupportedAttributes()
note:Supported attributes are currently unverified by the GroovyNodeBuilder as this would result in a change of behavior.
void validateScriptedAttributes(Map specifiedAttributes)
throws org.nanocontainer.script.NanoContainerMarkupException
specifiedAttributes - Map
org.nanocontainer.script.NanoContainerMarkupException
Object createNewNode(Object current,
Map attributes)
throws org.nanocontainer.script.NanoContainerMarkupException
current - the current object. May be null
for no parent container.attributes - Map attributes specified in the groovy script
for the builder node.
in for consistency with the Groovy Builder API. Normally set to null.
org.nanocontainer.script.NanoContainerMarkupException - upon Nanocontainer error.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||