Package org.daisy.cli
Class AbstractUI.Argument
java.lang.Object
org.daisy.cli.AbstractUI.Definition
org.daisy.cli.AbstractUI.Argument
- Direct Known Subclasses:
AbstractUI.OptionalArgument
- Enclosing class:
- AbstractUI
Provides the information needed by an application argument.
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of acceptable values.boolean
Returns true if this argument has a finite list of acceptable values.Methods inherited from class org.daisy.cli.AbstractUI.Definition
getDescription, getName
-
Constructor Details
-
Argument
Creates a new Argument.- Parameters:
name
- the name of the argumentdesc
- the description of the argument
-
Argument
Creates a new Argument with a finite list of acceptable values.- Parameters:
name
- the name of the argumentdesc
- the description of the argumentvalues
- the list of acceptable values
-
-
Method Details
-
hasValues
public boolean hasValues()Returns true if this argument has a finite list of acceptable values.- Returns:
- returns true if a finite list of acceptable values exist, false otherwise
-
getValues
Gets the list of acceptable values.- Returns:
- returns the list of acceptable values, or null if the list of possible values is infinite
-