public interface OptionConfiguration
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanOption(java.lang.String name)
Determines the boolean value of the option with the given name.
|
boolean |
getBooleanOption(java.lang.String name,
boolean defaultValue)
Determines the boolean value of the option with the given name.
|
java.lang.String |
getOption(java.lang.String name)
Determines the value of the option with the given name.
|
java.lang.String |
getOption(java.lang.String name,
java.lang.String defaultValue)
Determines the boolean value of the option with the given name.
|
java.util.Map<java.lang.String,java.lang.String> |
getOptions() |
java.util.Set<java.lang.String> |
getSupportedOptions() |
boolean |
hasOption(java.lang.String name)
Check whether the given option is provided.
|
java.util.Map<java.lang.String,java.lang.String> getOptions()
boolean hasOption(java.lang.String name)
name
- the name of the option to checkjava.lang.String getOption(java.lang.String name)
name
- the name of the option to checkjava.lang.String getOption(java.lang.String name, java.lang.String defaultValue)
defaultValue
if the option is not set.name
- the name of the option to checkdefaultValue
- the default value to return if the option is not setboolean getBooleanOption(java.lang.String name)
name
- the name of the option to checkboolean getBooleanOption(java.lang.String name, boolean defaultValue)
name
- the name of the option to checkdefaultValue
- the default value to use if the option is not setjava.util.Set<java.lang.String> getSupportedOptions()