|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthenplus.CommandDispatcher
public class CommandDispatcher
The Command Dispatcher for all commands.
Constructor Summary | |
---|---|
CommandDispatcher(SetCommand sc)
|
Method Summary | |
---|---|
void |
addExecutionListener(ExecutionListener listener)
Add an execution listener that is informed whenever a command is executed. |
String |
completer(String text,
int state)
|
boolean |
containsCommand(String cmd)
|
void |
endBatch()
|
void |
execute(SQLSession session,
String givenCommand)
execute the command given. |
Command |
getCommandFrom(String completeCmd)
|
String |
getCommandNameFrom(String completeCmd)
extracts the command from the commandstring. |
Iterator |
getRegisteredCommandNames()
returns a sorted list of command names. |
Iterator |
getRegisteredCommandNames(String key)
returns a sorted list of command names, starting with the first entry matching the key. |
Iterator |
getRegisteredCommands()
returns the commands in the sequence they have been added. |
boolean |
isInBatch()
|
void |
register(Command c)
|
void |
registerAdditionalCommand(String cmd,
Command c)
|
boolean |
removeExecutionListener(ExecutionListener listener)
remove an execution listener. |
void |
shutdown()
|
void |
startBatch()
|
void |
unregister(Command c)
unregister command. |
void |
unregisterAdditionalCommand(String cmd)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandDispatcher(SetCommand sc)
Method Detail |
---|
public Iterator getRegisteredCommands()
public Iterator getRegisteredCommandNames()
public Iterator getRegisteredCommandNames(String key)
public void startBatch()
public void endBatch()
public boolean isInBatch()
public void register(Command c)
public boolean containsCommand(String cmd)
public void registerAdditionalCommand(String cmd, Command c)
public void unregisterAdditionalCommand(String cmd)
public void unregister(Command c)
public String getCommandNameFrom(String completeCmd)
public Command getCommandFrom(String completeCmd)
public void shutdown()
public void addExecutionListener(ExecutionListener listener)
listener
- an Execution Listenerpublic boolean removeExecutionListener(ExecutionListener listener)
listener
- the execution listener to be removed
public void execute(SQLSession session, String givenCommand)
public String completer(String text, int state)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |