public interface OptionSet
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String name)
Return the value of a Boolean option.
|
OptionValue |
getDefault(String optionName)
Gets the default value for the specified option.
|
double |
getDouble(String name)
Return the value of a double option.
|
int |
getInt(String name)
Return the value of a long option as an int
|
long |
getLong(String name)
Return the value of a long option.
|
OptionValue |
getOption(String name)
Gets the option value for the given option name.
|
boolean |
getOption(TypeValidators.BooleanValidator validator)
Gets the boolean value (from the option value) for the given boolean validator.
|
double |
getOption(TypeValidators.DoubleValidator validator)
Gets the double value (from the option value) for the given double validator.
|
long |
getOption(TypeValidators.LongValidator validator)
Gets the long value (from the option value) for the given long validator.
|
String |
getOption(TypeValidators.StringValidator validator)
Gets the string value (from the option value) for the given string validator.
|
String |
getString(String name)
Return the value of a String option.
|
OptionValue getOption(String name)
getOption(TypeValidators.BooleanValidator validator)
,
getOption(TypeValidators.DoubleValidator validator)
,
getOption(TypeValidators.LongValidator validator)
, and
getOption(TypeValidators.StringValidator validator)
.name
- option nameOptionValue getDefault(String optionName)
optionName
- The option to retrieve the default value for.boolean getOption(TypeValidators.BooleanValidator validator)
validator
- the boolean validatordouble getOption(TypeValidators.DoubleValidator validator)
validator
- the double validatorlong getOption(TypeValidators.LongValidator validator)
validator
- the long validatorString getOption(TypeValidators.StringValidator validator)
validator
- the string validatorboolean getBoolean(String name)
name
- option nameIllegalArgumentException
- if the option is undefined or
is not of the correct data typeint getInt(String name)
name
- option nameIllegalArgumentException
- if the option is undefined or
is not of the correct data typelong getLong(String name)
name
- option nameIllegalArgumentException
- if the option is undefined or
is not of the correct data typedouble getDouble(String name)
name
- option nameIllegalArgumentException
- if the option is undefined or
is not of the correct data typeString getString(String name)
name
- option nameIllegalArgumentException
- if the option is undefined or
is not of the correct data typeCopyright © 1970 The Apache Software Foundation. All rights reserved.