|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
java.lang.Object |
createNewNode(java.lang.Object current,
java.util.Map attributes)
Execute the handler for the given node builder. |
java.lang.String |
getNodeName()
Retrieve the name of the node. |
java.util.Set |
getSupportedAttributes()
Retrieve a map of supported attribute names. |
void |
validateScriptedAttributes(java.util.Map specifiedAttributes)
Validates a given map of attributes as supplied by the GroovyNodeBuilder against the node's supported attributes. |
Method Detail |
public java.lang.String getNodeName()
public java.util.Set getSupportedAttributes()
note:Supported attributes are currently unverified by the GroovyNodeBuilder as this would result in a change of behavior.
public void validateScriptedAttributes(java.util.Map specifiedAttributes) throws org.nanocontainer.script.NanoContainerMarkupException
specifiedAttributes
- Map
org.nanocontainer.script.NanoContainerMarkupException
public java.lang.Object createNewNode(java.lang.Object current, java.util.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 |