public static class AbstractUI.OptionalArgument extends AbstractUI.Argument
Constructor | Description |
---|---|
OptionalArgument(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue) |
Creates a new optional argument
|
OptionalArgument(java.lang.String name,
java.lang.String description,
java.util.List<AbstractUI.Definition> values,
java.lang.String defaultValue) |
Creates a new optional argument with a finite list of acceptable values.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDefault() |
Gets the default value.
|
getValues, hasValues
getDescription, getName
public OptionalArgument(java.lang.String name, java.lang.String description, java.lang.String defaultValue)
name
- the name of the argumentdescription
- the description of the argumentdefaultValue
- the default value for the argumentpublic OptionalArgument(java.lang.String name, java.lang.String description, java.util.List<AbstractUI.Definition> values, java.lang.String defaultValue)
name
- the name of the argumentdescription
- the description of the argumentvalues
- the list of acceptable valuesdefaultValue
- the default value for the argument