| java.lang.Object nl.improved.sqlclient.commands.CommandManager
CommandManager | public class CommandManager (Code) | | Class for handling the available commands.
|
findCommand | public Command findCommand(String commandString)(Code) | | Return the command that is registered with a pattern matching the command string.
NOTE: the commandString is matched to the pattern in uppercase
Parameters: commandString - a string to find a matching command for so it can be executed the command that is registered with a pattern matching the command string. |
getCommands | public Collection<Command> getCommands()(Code) | | Return a collection of all available/registred commands.
a collection of all available/registred commands. |
register | public void register(String pattern, Command cmd)(Code) | | Register a command for a specified regular expression.
Parameters: pattern - a regular expression the command should match for executing the command Parameters: cmd - the command that is returned when a string matches the pattern |
|
|