public class ArgumentValues extends Object
Modifier and Type | Method and Description |
---|---|
List<String[]> |
getAllResults(Argument arg)
Returns all results for the specified argument.
|
Set<Argument> |
getDefinedArguments()
Returns a list of all defined arguments.
|
int |
getDefinedCount(Argument... ofThese)
Counts the number of arguments defined on the command line which are in the list provided.
|
String |
getFirstResult(Argument arg)
Convenience method to return the first value of the first instance of the command line argument
values for the specified argument.
|
int |
getFirstResultAsInt(Argument arg,
int undefinedValue)
Convenience method to return the result of getFirstResult method as an integer.
|
String[] |
getPostArgs()
After processing the command line arguments, this method may be used to return all arguments
which were excluded from processing by their placement after the "
-- "
psuedo-argument. |
boolean |
isDefined(Argument arg)
Returns whetheror not the command line argument was actually provided on the command line.
|
public String[] getPostArgs()
--
"
psuedo-argument.public Set<Argument> getDefinedArguments()
public int getDefinedCount(Argument... ofThese)
ofThese
- the arguments to search for, or null to count all supplied argumentspublic boolean isDefined(Argument arg)
arg
- argument to querypublic List<String[]> getAllResults(Argument arg)
arg
- argument to querypublic String getFirstResult(Argument arg)
arg
- argument to querypublic int getFirstResultAsInt(Argument arg, int undefinedValue)
arg
- argument to queryundefinedValue
- value to return when argument is not defined or is illegally defined