de.uniba.wiai.lspi.util.console
Class ShowOutputCommand
java.lang.Object
de.uniba.wiai.lspi.util.console.Command
de.uniba.wiai.lspi.util.console.ShowOutputCommand
public class ShowOutputCommand
- extends Command
- Version:
- 1.0.5
- Author:
- sven
|
Constructor Summary |
ShowOutputCommand(java.lang.Object[] objects,
java.io.PrintStream out)
Creates a new instance of ShowOutputCommand |
|
Method Summary |
void |
exec()
To be overwritten by subclasses for command execution. |
java.lang.String |
getCommandName()
Return the name of the command. |
void |
printOutHelp()
To be overwritten. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMAND_NAME
public static final java.lang.String COMMAND_NAME
- See Also:
- Constant Field Values
CLEAR_PARAM
public static final java.lang.String CLEAR_PARAM
- See Also:
- Constant Field Values
ShowOutputCommand
public ShowOutputCommand(java.lang.Object[] objects,
java.io.PrintStream out)
- Creates a new instance of ShowOutputCommand
- Parameters:
objects - out -
exec
public void exec()
throws ConsoleException
- Description copied from class:
Command
- To be overwritten by subclasses for command execution. The work of a
command implementation is done in this method.
- Specified by:
exec in class Command
- Throws:
ConsoleException - Exception during execution.
getCommandName
public java.lang.String getCommandName()
- Description copied from class:
Command
- Return the name of the command. Must not contain spaces. To be
overwritten by subclasses.
- Specified by:
getCommandName in class Command
- Returns:
- The commands name. For example:
exit.
printOutHelp
public void printOutHelp()
- Description copied from class:
Command
- To be overwritten. Display the help text of the Command.
- Specified by:
printOutHelp in class Command