Klasse ParsedCommand

java.lang.Object
de.dlr.proseo.ui.cli.parser.ParsedCommand

public class ParsedCommand extends Object
Class representing a parsed command line command
Autor:
Dr. Thomas Bassler
  • Konstruktordetails

    • ParsedCommand

      public ParsedCommand()
  • Methodendetails

    • getName

      public String getName()
      Gets the parsed command's name
      Gibt zurück:
      the name
    • setName

      public void setName(String name)
      Sets the parsed command's name
      Parameter:
      name - the name to set
    • getSubcommand

      public ParsedCommand getSubcommand()
      Gets the parsed command's subcommand
      Gibt zurück:
      the subcommand
    • setSubcommand

      public void setSubcommand(ParsedCommand subcommand)
      Sets the parsed command's subcommand
      Parameter:
      subcommand - the subcommand to set
    • getOptions

      public List<ParsedOption> getOptions()
      Gets the parsed command's options
      Gibt zurück:
      the options
    • setOptions

      public void setOptions(List<ParsedOption> options)
      Sets the parsed command's options
      Parameter:
      options - the options to set
    • isHelpRequested

      public boolean isHelpRequested()
      Check, whether the "help" option was set
      Gibt zurück:
      true, if help was requested, false otherwise
    • getParameters

      public List<ParsedParameter> getParameters()
      Gets the parsed command's parameters
      Gibt zurück:
      the parameters
    • setParameters

      public void setParameters(List<ParsedParameter> parameters)
      Sets the parsed command's parameters
      Parameter:
      parameters - the parameters to set
    • getSyntaxCommand

      public CLICommand getSyntaxCommand()
      Gets the parsed command's syntax command
      Gibt zurück:
      the syntaxCommand
    • setSyntaxCommand

      public void setSyntaxCommand(CLICommand syntaxCommand)
      Sets the parsed command's syntax command
      Parameter:
      syntaxCommand - the syntaxCommand to set
    • toString

      public String toString()
      Returns a String representation of the parsed command
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      a String representation of the parsed command