Interface ParentCommand


public interface ParentCommand
  • 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

      void addSubCommand(SubCommand subCommand)
      Parameters:
      subCommand - The sub command to add.
    • hasSubCommand

      boolean hasSubCommand(String name)
      Parameters:
      name - The sub-command name.
      Returns:
      true if the sub-command exists, otherwise false.
    • getSubCommand

      SubCommand getSubCommand(String subCommand)
      Parameters:
      subCommand - The sub-command name.
      Returns:
      The sub-command.