Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.nanocontainer.script.groovy.buildernodes
Class NewBuilderNode

    java.lang.Object
      org.nanocontainer.script.groovy.buildernodes.AbstractBuilderNode
          org.nanocontainer.script.groovy.buildernodes.NewBuilderNode

All Implemented Interfaces:
  Serializable, BuilderNode

    public class NewBuilderNode

extends AbstractBuilderNode

Handles the child of container 'newBuilder' node.

Version:
  $Revision: 2695 $
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` Suppoerted attribute 'validating'.

Constructor Summary
`NewBuilderNode()`

Method Summary
`Object` | `createNewNode(Object current, Map attributes)` Execute the handler for the given node builder.

Methods inherited from class org.nanocontainer.script.groovy.buildernodes.AbstractBuilderNode
`addAttribute, getNodeName, getSupportedAttributes, 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

  Suppoerted attribute 'validating'. Indicates that attributes should be validated and NanoContainerMarkupException 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 attributes)

  Description copied from interface: `BuilderNode`
  Execute the handler for the given node builder.

  Parameters:
    `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.
  Returns:
    Object

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2007 Codehaus. All Rights Reserved.