org.picocontainer.script.groovy.nodes
Class NewBuilderNode

java.lang.Object
  extended by org.picocontainer.script.groovy.nodes.AbstractBuilderNode
      extended by org.picocontainer.script.groovy.nodes.NewBuilderNode
All Implemented Interfaces:
Serializable, BuilderNode

public class NewBuilderNode
extends AbstractBuilderNode

Handles the child of container 'newBuilder' node.

Author:
James Strachan, Paul Hammant, Aslak Hellesøy, Michael Rimov, Mauro Talevi
See Also:
Serialized Form

Field Summary
static String CLASS_ATTRIBUTE
          Supported attribute: 'class'.
static String NODE_NAME
          Node name we're handling: 'newBuilder'.
static String VALIDATE_ATTRIBUTE
          Supported attribute 'validating'.
 
Constructor Summary
NewBuilderNode()
           
 
Method Summary
 Object createNewNode(Object current, Map<String,Object> attributes)
          Creates a new node .
 
Methods inherited from class org.picocontainer.script.groovy.nodes.AbstractBuilderNode
addAttribute, getNodeName, getSupportedAttributeNames, isAttribute, toString, validateScriptedAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_NAME

public static final String NODE_NAME
Node name we're handling: 'newBuilder'.

See Also:
Constant Field Values

CLASS_ATTRIBUTE

public static final String CLASS_ATTRIBUTE
Supported attribute: 'class'.

See Also:
Constant Field Values

VALIDATE_ATTRIBUTE

public static final String VALIDATE_ATTRIBUTE
Supported attribute 'validating'. Indicates that attributes should be validated and ScriptedPicoContainerMarkupException should be thrown if invalid attributes are found.

See Also:
Constant Field Values
Constructor Detail

NewBuilderNode

public NewBuilderNode()
Method Detail

createNewNode

public Object createNewNode(Object current,
                            Map<String,Object> attributes)
Description copied from interface: BuilderNode
Creates a new node .

Parameters:
current - the current Object - may be null for no parent container.
attributes - the Map of scripted attributes for the builder node - may be null
Returns:
The newly created node


Copyright © 2003-2010 Codehaus. All Rights Reserved.