Class ManCommand
Object
BotCommand
ManCommand
- All Implemented Interfaces:
IManCommand,IBotCommand
- Direct Known Subclasses:
HelpCommand
-
Field Summary
Fields inherited from class BotCommand
COMMAND_INIT_CHARACTER, COMMAND_PARAMETER_SEPARATOR_REGEXP -
Constructor Summary
ConstructorsConstructorDescriptionManCommand(String commandIdentifier, String description, String extendedDescription) Create a new ManCommand providing a commandIdentifier, a short description and the extended description -
Method Summary
Modifier and TypeMethodDescriptionReturns the extended Description of this commandtoMan()Returns a String Representations of the Command and it's extended Description.Methods inherited from class BotCommand
execute, getCommandIdentifier, getDescription, processMessage, toString
-
Constructor Details
-
ManCommand
Create a new ManCommand providing a commandIdentifier, a short description and the extended description- Parameters:
commandIdentifier- the unique identifier of this command (e.g. the command string to enter into chat)description- the description of this commandextendedDescription- The extended Description for the Command, should provide detailed information about arguments and possible options
-
-
Method Details
-
getExtendedDescription
Description copied from interface:IManCommandReturns the extended Description of this command- Specified by:
getExtendedDescriptionin interfaceIManCommand- Returns:
- the extendedDescription
-
toMan
Description copied from interface:IManCommandReturns a String Representations of the Command and it's extended Description.- Specified by:
toManin interfaceIManCommand- Returns:
- a String representing the Command and it's extended Description
-