Interface ParentCommand
public interface ParentCommand
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubCommand(SubCommand subCommand) getName()getSubCommand(String subCommand) booleanhasSubCommand(String name)
-
Method Details
-
getName
String getName()- Returns:
- The name of the parent command name.
-
getSubCommands
List<SubCommand> getSubCommands()- Returns:
- The list of registered sub-commands.
-
addSubCommand
- Parameters:
subCommand- The sub command to add.
-
hasSubCommand
- Parameters:
name- The sub-command name.- Returns:
- true if the sub-command exists, otherwise false.
-
getSubCommand
- Parameters:
subCommand- The sub-command name.- Returns:
- The sub-command.
-