|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectChainBase
public class ChainBase
Constructor Summary | |
---|---|
ChainBase()
|
Method Summary | |
---|---|
void |
addCommand(Command command)
Add a command to the chian. |
boolean |
execute(Context context)
Execute the chain using the provided Context . |
Command[] |
getCommands()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainBase()
Method Detail |
---|
public void addCommand(Command command)
addCommand
in interface Chain
command
- the new commandpublic Command[] getCommands()
getCommands
in interface Chain
public boolean execute(Context context) throws Exception
Context
.
execute
in interface Command
context
-
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |