public abstract class BaseOptionManager extends Object implements OptionManager
OptionManager implements some the basic methods and should be
extended by concrete implementations.| Constructor and Description |
|---|
BaseOptionManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String name)
Return the value of a Boolean 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
|
OptionList |
getInternalOptionList()
Returns all the internal options contained in this option manager.
|
long |
getLong(String name)
Return the value of a long option.
|
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.
|
OptionList |
getPublicOptionList()
Returns all the public options contained in this option manager.
|
protected abstract OptionValue.OptionScope |
getScope() |
String |
getString(String name)
Return the value of a String option.
|
void |
setLocalOption(OptionValue.Kind kind,
String name,
String valueStr)
Sets an option of the specified
OptionValue.Kind on the OptionManager. |
void |
setLocalOption(String name,
boolean value)
Sets a boolean option on the
OptionManager. |
void |
setLocalOption(String name,
double value)
Sets a double option on the
OptionManager. |
void |
setLocalOption(String name,
long value)
Sets a long option on the
OptionManager. |
void |
setLocalOption(String name,
Object value)
Sets an option on the
OptionManager. |
void |
setLocalOption(String name,
String value)
Sets a String option on the
OptionManager. |
protected abstract void |
setLocalOptionHelper(OptionValue optionValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllLocalOptions, deleteLocalOption, getOptionDefinition, getOptionListgetDefault, getOptionforEach, iterator, spliteratorpublic boolean getOption(TypeValidators.BooleanValidator validator)
OptionSetpublic double getOption(TypeValidators.DoubleValidator validator)
OptionSetpublic long getOption(TypeValidators.LongValidator validator)
OptionSetpublic String getOption(TypeValidators.StringValidator validator)
OptionSetpublic boolean getBoolean(String name)
OptionSetgetBoolean in interface OptionSetname - option namepublic int getInt(String name)
OptionSetpublic long getLong(String name)
OptionSetpublic double getDouble(String name)
OptionSetpublic String getString(String name)
OptionSetpublic OptionList getInternalOptionList()
OptionManagergetInternalOptionList in interface OptionManagerpublic OptionList getPublicOptionList()
OptionManagergetPublicOptionList in interface OptionManagerpublic void setLocalOption(String name, boolean value)
OptionManagerOptionManager.setLocalOption in interface OptionManagername - The name of the option.value - The value of the option.public void setLocalOption(String name, long value)
OptionManagerOptionManager.setLocalOption in interface OptionManagername - The name of the option.value - The value of the option.public void setLocalOption(String name, double value)
OptionManagerOptionManager.setLocalOption in interface OptionManagername - The name of the option.value - The value of the option.public void setLocalOption(String name, String value)
OptionManagerOptionManager.setLocalOption in interface OptionManagername - The name of the option.value - The value of the option.public void setLocalOption(String name, Object value)
OptionManagerOptionManager.setLocalOption in interface OptionManagername - The name of the option.value - The value of the option.public void setLocalOption(OptionValue.Kind kind, String name, String valueStr)
OptionManagerOptionValue.Kind on the OptionManager.setLocalOption in interface OptionManagerkind - The kind of the option.name - The name of the option.valueStr - The value of the option.protected abstract void setLocalOptionHelper(OptionValue optionValue)
protected abstract OptionValue.OptionScope getScope()
Copyright © 2021 The Apache Software Foundation. All rights reserved.