OptionHandler implementation that takes a single value to the option,
which is then gets split into individual tokens using fixed delimiter.
This class is marked as abstract even though it has no abstract methods
to indicate that the class cannot be used by itself in Option#handler(),
due to the extra argument that it takes.
| Modifier and Type | Field and Description |
|---|---|
| protected final String | |
| protected final OneArgumentOptionHandler |
| Access | Constructor and Description |
|---|---|
| public | DelimitedOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super T> setter, String delimiter, OneArgumentOptionHandler<? extends T> individualOptionHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getDefaultMetaVariable()
Implements abstract org. Gets the default meta variable name used to print the usage screen. |
| public int | parseArguments(Parameters
The rest of the arguments. This method can use this
object to access the arguments of the option if necessary.
The object is valid only during the method call. params)Implements abstract org. Called if the option that this owner recognizes is found. |
| public String | Returns: null if the current value of the setter isn't available.Overrides org. Prints the default value by introspecting the current setter as |
| delimiter | back to summary |
|---|---|
| protected final String delimiter | |
| individualOptionHandler | back to summary |
|---|---|
| protected final OneArgumentOptionHandler<? extends T> individualOptionHandler | |
| DelimitedOptionHandler | back to summary |
|---|---|
| public DelimitedOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super T> setter, String delimiter, OneArgumentOptionHandler<? extends T> individualOptionHandler) | |
| getDefaultMetaVariable | back to summary |
|---|---|
| public String getDefaultMetaVariable() Implements abstract org. Doc from org. Gets the default meta variable name used to print the usage screen.
The value returned by this method can be a reference in the
| |
| parseArguments | back to summary |
|---|---|
| public int parseArguments(Parameters params) throws CmdLineException Implements abstract org. Doc from org. Called if the option that this owner recognizes is found.
| |
| printDefaultValue | back to summary |
|---|---|
| public String printDefaultValue() Overrides org. Prints the default value by introspecting the current setter as
| |