public interface WriteableCommandLine extends CommandLine
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(Option option)
Adds an Option to the CommandLine
|
void |
addProperty(java.lang.String property,
java.lang.String value)
Adds a property value to a name in the CommandLine.
|
void |
addSwitch(Option option,
boolean value)
Adds a switch value to an Option in the CommandLine.
|
void |
addValue(Option option,
java.lang.Object value)
Adds a value to an Option in the CommandLine.
|
boolean |
looksLikeOption(java.lang.String argument)
Detects whether the argument looks like an Option trigger
|
void |
setDefaultSwitch(Option option,
java.lang.Boolean defaultSwitch)
Sets the default state for a Switch in the CommandLine.
|
void |
setDefaultValues(Option option,
java.util.List defaultValues)
Sets the default values for an Option in the CommandLine
|
getOption, getOptionCount, getOptionCount, getOptions, getOptionTriggers, getProperties, getProperty, getProperty, getSwitch, getSwitch, getSwitch, getSwitch, getValue, getValue, getValue, getValue, getValues, getValues, getValues, getValues, hasOption, hasOptionvoid addOption(Option option)
option - the Option to addvoid addValue(Option option, java.lang.Object value)
option - the Option to add tovalue - the value to addvoid setDefaultValues(Option option, java.util.List defaultValues)
option - the Option to add todefaultValues - the defaults for the optionvoid addSwitch(Option option, boolean value) throws java.lang.IllegalStateException
option - the Option to add tovalue - the switch value to addjava.lang.IllegalStateException - if the switch has already been addedvoid setDefaultSwitch(Option option, java.lang.Boolean defaultSwitch)
option - the Option to add todefaultSwitch - the defaults state for ths switchvoid addProperty(java.lang.String property, java.lang.String value)
property - the name of the propertyvalue - the value of the propertyboolean looksLikeOption(java.lang.String argument)
argument - the argument to test