org.apache.shale.clay.component.chain
Class AssignChildrenCommand

java.lang.Object
  extended by org.apache.shale.clay.component.chain.AbstractCommand
      extended by org.apache.shale.clay.component.chain.AssignChildrenCommand
All Implemented Interfaces:
Command

public class AssignChildrenCommand
extends AbstractCommand

Iterates over the child ElementBean collection of a ComponentBean, and invokes the CreateComponentCommand for each.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AssignChildrenCommand()
           
 
Method Summary
 boolean execute(Context context)
           This Command iterates over the ComponentBean children collection and invokes the Globals.ADD_COMPONENT_COMMAND_NAME for each ElementBean.
 
Methods inherited from class org.apache.shale.clay.component.chain.AbstractCommand
getCatalog, getCustomizationCatalog, getMessages, getTagUtils, isValueReference, realizeSymbols, replaceMnemonic, replaceMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignChildrenCommand

public AssignChildrenCommand()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

This Command iterates over the ComponentBean children collection and invokes the Globals.ADD_COMPONENT_COMMAND_NAME for each ElementBean.

Specified by:
execute in interface Command
Specified by:
execute in class AbstractCommand
Parameters:
context - commons chains
Returns:
true if the chain is complete and should stop
Throws:
Exception - propagated up to the top of the chain


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.