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
public static class AbstractUI.OptionalArgument extends AbstractUI.Argument
Provides the information needed by an optional argument.- Author:
- Joel HÃ¥kansson
-
-
Constructor Summary
Constructors Constructor Description OptionalArgument(java.lang.String name, java.lang.String description, java.lang.String defaultValue)
Creates a new optional argumentOptionalArgument(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefault()
Gets the default value.-
Methods inherited from class org.daisy.cli.AbstractUI.Argument
getValues, hasValues
-
Methods inherited from class org.daisy.cli.AbstractUI.Definition
getDescription, getName
-
-
-
-
Constructor Detail
-
OptionalArgument
public OptionalArgument(java.lang.String name, java.lang.String description, java.lang.String defaultValue)
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(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.- Parameters:
name
- the name of the argumentdescription
- the description of the argumentvalues
- the list of acceptable valuesdefaultValue
- the default value for the argument
-
-