AbstractUI.OptionalArgument
public static class AbstractUI.Argument extends AbstractUI.Definition
Constructor | Description |
---|---|
Argument(java.lang.String name,
java.lang.String desc) |
Creates a new Argument.
|
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 | 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 Argument(java.lang.String name, java.lang.String desc)
name
- the name of the argumentdesc
- the description of the argumentpublic 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()