Package de.dlr.proseo.ui.cli.parser
Klasse CLIOption
java.lang.Object
de.dlr.proseo.ui.cli.parser.CLIOption
Class representing a prosEO CLI command option
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets 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.void
setDescription
(String description) Sets the option's descriptionvoid
Sets the option's namevoid
setShortForm
(Character shortForm) Sets the option's short formvoid
Sets the option's typetoString()
Returns the option in string format
-
Konstruktordetails
-
CLIOption
public CLIOption()
-
-
Methodendetails
-
getName
Gets the option's name- Gibt zurück:
- the name
-
setName
Sets the option's name- Parameter:
name
- the name to set
-
getType
Gets the option's type- Gibt zurück:
- the type
-
setType
Sets the option's type- Parameter:
type
- the type to set
-
getDescription
Gets the option's description- Gibt zurück:
- the description
-
setDescription
Sets the option's description- Parameter:
description
- the description to set
-
getShortForm
Gets the option's short form- Gibt zurück:
- the shortForm
-
setShortForm
Sets the option's short form- Parameter:
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.- Parameter:
htmlDoc
- A StringBuilder that may already contain information.- Gibt zurück:
- The same StringBuilder, appended information on the option.
-