Modifier and Type | Field and Description |
---|---|
protected List<Command> |
commands |
protected boolean |
frozen |
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
ChainBase() |
ChainBase(Collection<Command> commands) |
ChainBase(Command... commands) |
ChainBase(Command command) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command command) |
Command |
clone()
This method allows to create new clone of a command, so the instances in
the CommandManager's catalogs are masters, and the execution always uses
clone created by this method.
|
boolean |
execute(Context context) |
List<Command> |
getCommands()
Returns unmodifiable list of commands.
|
public ChainBase()
public ChainBase(Command command)
public ChainBase(Command... commands)
public ChainBase(Collection<Command> commands)
public void addCommand(Command command)
addCommand
in interface Chain
public Command clone() throws CloneNotSupportedException
Command
clone
in interface Command
clone
in class Object
CloneNotSupportedException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.