Klasse CLIParameter

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

public class CLIParameter extends Object
Class representing a CLI command parameter
Autor:
Dr. Thomas Bassler
  • Konstruktordetails

    • CLIParameter

      public CLIParameter()
  • Methodendetails

    • getName

      public String getName()
      Gets the parameter's name
      Gibt zurück:
      the name
    • setName

      public void setName(String name)
      Sets the parameter's name
      Parameter:
      name - the name to set
    • getType

      public String getType()
      Gets the parameter's type
      Gibt zurück:
      the type
    • setType

      public void setType(String type)
      Sets the parameter's type
      Parameter:
      type - the type to set
    • getDescription

      public String getDescription()
      Gets the parameter's description
      Gibt zurück:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the parameter's description
      Parameter:
      description - the description to set
    • getOptional

      public Boolean getOptional()
      Return whether the parameter is optional
      Gibt zurück:
      true if the parameter is optional, false otherwise
    • setOptional

      public void setOptional(Boolean optional)
      Set whether the parameter is optional
      Parameter:
      optional - true if the parameter is to be optional, false otherwise
    • getRepeatable

      public Boolean getRepeatable()
      Return whether the parameter is repeatable
      Gibt zurück:
      true if the parameter is repeatable, false otherwise
    • setRepeatable

      public void setRepeatable(Boolean repeatable)
      Set whether the parameter is repeatable
      Parameter:
      repeatable - true if the parameter is to be repeatable, false otherwise
    • toString

      public String toString()
      Returns a String representation of the parameter
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      a String representation of the parameter
    • printHTML

      public StringBuilder printHTML(StringBuilder htmlDoc)
      Appends the StringBuilder provided by the caller with HTML code that prints a table with the parameter's name and a description. If applicable, the parameter is marked as optional and/or repeatable.
      Parameter:
      htmlDoc - A StringBuilder that may already contain information.
      Gibt zurück:
      The same StringBuilder, appended information on the option.