Package readycli
Class Option.Parameter
java.lang.Object
readycli.Option.Parameter
- Enclosing class:
- Option
public static final class Option.Parameter
extends java.lang.Object
Represents a parameter of an
Option
. An option parameter is composed
by a name, a description and a default value, that is used in the case the
option is not specified on the command-line.- Author:
- Salvatore Giampa'
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
defaultValue
java.lang.String
description
java.lang.String
name
-
Method Summary
Modifier and Type Method Description java.lang.String
getDefaultValue()
Gets the default value assigned to this parameter.java.lang.String
getDescription()
Gets the description of the option parameterjava.lang.String
getName()
Gets the name of the option parameter
-
Field Details
-
name
public java.lang.String name -
description
public java.lang.String description -
defaultValue
public java.lang.String defaultValue
-
-
Method Details
-
getName
public java.lang.String getName()Gets the name of the option parameter- Returns:
- the name as a string
-
getDescription
public java.lang.String getDescription()Gets the description of the option parameter- Returns:
- the description as a string
-
getDefaultValue
public java.lang.String getDefaultValue()Gets the default value assigned to this parameter.- Returns:
- the default string value
-