Package org.daisy.cli
Class AbstractUI.OptionalArgument
java.lang.Object
org.daisy.cli.AbstractUI.Definition
org.daisy.cli.AbstractUI.Argument
org.daisy.cli.AbstractUI.OptionalArgument
- Enclosing class:
- AbstractUI
Provides the information needed by an optional argument.
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
ConstructorDescriptionOptionalArgument
(String name, String description, String defaultValue) Creates a new optional argumentOptionalArgument
(String name, String description, List<AbstractUI.Definition> values, String defaultValue) Creates a new optional argument with a finite list of acceptable values. -
Method Summary
Methods inherited from class org.daisy.cli.AbstractUI.Argument
getValues, hasValues
Methods inherited from class org.daisy.cli.AbstractUI.Definition
getDescription, getName
-
Constructor Details
-
OptionalArgument
Creates a new optional argument- Parameters:
name
- the name of the argumentdescription
- the description of the argumentdefaultValue
- the default value for the argument
-
OptionalArgument
public OptionalArgument(String name, String description, List<AbstractUI.Definition> values, String defaultValue) Creates a new optional argument with a finite list of acceptable values.- Parameters:
name
- the name of the argumentdescription
- the description of the argumentvalues
- the list of acceptable valuesdefaultValue
- the default value for the argument
-
-
Method Details
-
getDefault
Gets the default value.- Returns:
- returns the default value for the argument
-