public static class AbstractUI.Argument extends AbstractUI.Definition
Constructor and Description |
---|
AbstractUI.Argument(java.lang.String name,
java.lang.String desc)
Creates a new Argument.
|
AbstractUI.Argument(java.lang.String name,
java.lang.String desc,
java.util.List<AbstractUI.Definition> values)
Creates a new Argument with a finite list of acceptable values.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractUI.Definition> |
getValues()
Gets the list of acceptable values.
|
boolean |
hasValues()
Returns true if this argument has a finite list of acceptable values.
|
getDescription, getName
public AbstractUI.Argument(java.lang.String name, java.lang.String desc)
name
- the name of the argumentdesc
- the description of the argumentpublic AbstractUI.Argument(java.lang.String name, java.lang.String desc, java.util.List<AbstractUI.Definition> values)
name
- the name of the argumentdesc
- the description of the argumentvalues
- the list of acceptable valuespublic boolean hasValues()
public java.util.List<AbstractUI.Definition> getValues()