|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuilderNode
In a 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 node builder to figure out who should handle what.
Method Summary | |
---|---|
Object |
createNewNode(Object current,
Map<String,Object> attributes)
Creates a new node . |
String |
getNodeName()
Returns the name of the node, eg 'container' or 'component'. |
Set<String> |
getSupportedAttributeNames()
Returns the supported attribute names. |
void |
validateScriptedAttributes(Map<String,Object> attributes)
Validates a the attributes as supplied by the node builder against the node's supported attributes. |
Method Detail |
---|
String getNodeName()
Set<String> getSupportedAttributeNames()
void validateScriptedAttributes(Map<String,Object> attributes) throws ScriptedPicoContainerMarkupException
attributes
- the Map of scripted attributes
ScriptedPicoContainerMarkupException
Object createNewNode(Object current, Map<String,Object> attributes) throws ScriptedPicoContainerMarkupException
current
- the current Object - may be null
for no
parent container.attributes
- the Map of scripted attributes for the builder node -
may be null
ScriptedPicoContainerMarkupException
- upon script failure to
create new node.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |