Package de.dlr.proseo.ui.cli.parser
Class CLIOption
java.lang.Object
de.dlr.proseo.ui.cli.parser.CLIOption
Class representing a prosEO CLI command option
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the option's descriptiongetName()Gets the option's nameGets the option's short formgetType()Gets the option's typeprintHTML(StringBuilder htmlDoc) Appends the StringBuilder provided by the caller with HTML code that prints a table with the option's name, short form (if applicable) and description.voidsetDescription(String description) Sets the option's descriptionvoidSets the option's namevoidsetShortForm(Character shortForm) Sets the option's short formvoidSets the option's typetoString()Returns the option in string format
-
Constructor Details
-
CLIOption
public CLIOption()
-
-
Method Details
-
getName
Gets the option's name- Returns:
- the name
-
setName
Sets the option's name- Parameters:
name- the name to set
-
getType
Gets the option's type- Returns:
- the type
-
setType
Sets the option's type- Parameters:
type- the type to set
-
getDescription
Gets the option's description- Returns:
- the description
-
setDescription
Sets the option's description- Parameters:
description- the description to set
-
getShortForm
Gets the option's short form- Returns:
- the shortForm
-
setShortForm
Sets the option's short form- Parameters:
shortForm- the shortForm to set
-
toString
Returns the option in string format -
printHTML
Appends the StringBuilder provided by the caller with HTML code that prints a table with the option's name, short form (if applicable) and description.- Parameters:
htmlDoc- A StringBuilder that may already contain information.- Returns:
- The same StringBuilder, appended information on the option.
-