Package de.dlr.proseo.ui.cli.parser
Klasse ParsedCommand
java.lang.Object
de.dlr.proseo.ui.cli.parser.ParsedCommand
Class representing a parsed command line command
- Autor:
 - Dr. Thomas Bassler
 
- 
Konstruktorübersicht
Konstruktoren - 
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetName()Gets the parsed command's nameGets the parsed command's optionsGets the parsed command's parametersGets the parsed command's subcommandGets the parsed command's syntax commandbooleanCheck, whether the "help" option was setvoidSets the parsed command's namevoidsetOptions(List<ParsedOption> options) Sets the parsed command's optionsvoidsetParameters(List<ParsedParameter> parameters) Sets the parsed command's parametersvoidsetSubcommand(ParsedCommand subcommand) Sets the parsed command's subcommandvoidsetSyntaxCommand(CLICommand syntaxCommand) Sets the parsed command's syntax commandtoString()Returns a String representation of the parsed command 
- 
Konstruktordetails
- 
ParsedCommand
public ParsedCommand() 
 - 
 - 
Methodendetails
- 
getName
Gets the parsed command's name- Gibt zurück:
 - the name
 
 - 
setName
Sets the parsed command's name- Parameter:
 name- the name to set
 - 
getSubcommand
Gets the parsed command's subcommand- Gibt zurück:
 - the subcommand
 
 - 
setSubcommand
Sets the parsed command's subcommand- Parameter:
 subcommand- the subcommand to set
 - 
getOptions
Gets the parsed command's options- Gibt zurück:
 - the options
 
 - 
setOptions
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
Gets the parsed command's parameters- Gibt zurück:
 - the parameters
 
 - 
setParameters
Sets the parsed command's parameters- Parameter:
 parameters- the parameters to set
 - 
getSyntaxCommand
Gets the parsed command's syntax command- Gibt zurück:
 - the syntaxCommand
 
 - 
setSyntaxCommand
Sets the parsed command's syntax command- Parameter:
 syntaxCommand- the syntaxCommand to set
 - 
toString
Returns a String representation of the parsed command 
 -