Package de.dlr.proseo.ui.cli.parser
Klasse CLICommand
java.lang.Object
de.dlr.proseo.ui.cli.parser.CLICommand
Class representing a prosEO CLI command
- Autor:
- Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the command descriptiongetName()
Gets the command nameGets the command's optionsGets the command's parametersGets the command's subcommandsvoid
printHelp
(PrintStream out) Print help information for this command on the given print streamprintHTML
(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.void
setDescription
(String description) Sets the command descriptionvoid
Sets the command namevoid
setOptions
(List<CLIOption> options) Sets the command's optionsvoid
setParameters
(List<CLIParameter> parameters) Sets the command's parametersvoid
setSubcommands
(List<CLICommand> subcommands) Sets the command's subcommandstoString()
-
Konstruktordetails
-
CLICommand
public CLICommand()
-
-
Methodendetails
-
getName
Gets the command name- Gibt zurück:
- the name
-
setName
Sets the command name- Parameter:
name
- the name to set
-
getDescription
Gets the command description- Gibt zurück:
- the description
-
setDescription
Sets the command description- Parameter:
description
- the description to set
-
getSubcommands
Gets the command's subcommands- Gibt zurück:
- the subcommands
-
setSubcommands
Sets the command's subcommands- Parameter:
subcommands
- the subcommands to set
-
getOptions
Gets the command's options- Gibt zurück:
- the options
-
setOptions
Sets the command's options- Parameter:
options
- the options to set
-
getParameters
Gets the command's parameters- Gibt zurück:
- the parameters
-
setParameters
Sets the command's parameters- Parameter:
parameters
- the parameters to set
-
printHelp
Print help information for this command on the given print stream- Parameter:
out
- the print stream to write to
-
toString
-
printHTML
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.
-