public class DefaultCommandHandler extends java.lang.Object implements CommandHandler
CommandHandler| Constructor and Description |
|---|
DefaultCommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(Command command)
Adds a single command.
|
Command |
getCommand(java.lang.String name)
Returns a
Command by it's name or 'null' when nothing is found. |
void |
setAllCommands(java.util.List<Command> commands)
Sets a list of commands.
|
public void addCommand(Command command)
CommandHandleraddCommand in interface CommandHandlercommand - command to add.public Command getCommand(java.lang.String name)
CommandHandlerCommand by it's name or 'null' when nothing is found.getCommand in interface CommandHandlername - name of CommandCommandpublic void setAllCommands(java.util.List<Command> commands)
CommandHandlersetAllCommands in interface CommandHandlercommands - List of commandsCopyright © 2018 SAP SE. All Rights Reserved.