Klasse CLICommand

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

public class CLICommand extends Object
Class representing a prosEO CLI command
Autor:
Thomas Bassler
  • Konstruktordetails

    • CLICommand

      public CLICommand()
  • Methodendetails

    • getName

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

      public void setName(String name)
      Sets the command name
      Parameter:
      name - the name to set
    • getDescription

      public String getDescription()
      Gets the command description
      Gibt zurück:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the command description
      Parameter:
      description - the description to set
    • getSubcommands

      public List<CLICommand> getSubcommands()
      Gets the command's subcommands
      Gibt zurück:
      the subcommands
    • setSubcommands

      public void setSubcommands(List<CLICommand> subcommands)
      Sets the command's subcommands
      Parameter:
      subcommands - the subcommands to set
    • getOptions

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

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

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

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

      public void printHelp(PrintStream out)
      Print help information for this command on the given print stream
      Parameter:
      out - the print stream to write to
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • printHTML

      public StringBuilder printHTML(StringBuilder htmlDoc)
      Appends the StringBuilder provided by the caller with HTML code that prints a table with the command's name and description and calls - if applicable - the printHTML() methods of subcommands, options and parameters.
      Parameter:
      htmlDoc - A StringBuilder that may already contain information.
      Gibt zurück:
      The same StringBuilder, appended information on the command.