public class UsageToken extends Object
-m minute [-s seconds] has
two usage tokens: one corresponding to -m minute and another one corresponding to -s seconds| Constructor and Description |
|---|
UsageToken(String optionName,
String optionAliasName,
String dataVariableName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDataVariableName() |
Field |
getMappedField(Class<?> dataClass) |
String |
getOptionAliasName() |
String |
getOptionName() |
Method |
getSetterMethod(Class<?> dataClass) |
int |
hashCode() |
public UsageToken(String optionName, String optionAliasName, String dataVariableName)
optionName - The option switch, e.g. m is an option name in usage expression -m minute [-s seconds]optionAliasName - The alias if any for the option, e.g. min is an alias in usage expression -m|--min minute [-s seconds]dataVariableName - The name corresponding to variable in data class, e.g. minute is data variable name in usage expression
-m minute [-s seconds]public String getOptionName()
public String getOptionAliasName()
public String getDataVariableName()
public Field getMappedField(Class<?> dataClass)
dataClass - The data class which will keep the values available in command line argumentsIllegalArgumentException - If corresponding field could not be foundpublic Method getSetterMethod(Class<?> dataClass)
dataClass - The data class which will keep the values available in command line argumentsIllegalArgumentException - If corresponding setter method could not be foundCopyright © 2017. All rights reserved.