public interface OptionManager extends OptionSet, Iterable<OptionValue>
options
. Implementations must be case-insensitive to the name of an option.
The options governed by an OptionManager
fall into various categories. These categories are described below.
OptionManager
. Whether an option is Local to an OptionManager
or not should
be irrelevant to the user.
Modifier and Type | Method and Description |
---|---|
void |
deleteAllLocalOptions()
Deletes all options.
|
void |
deleteLocalOption(String name)
Deletes the option.
|
@NotNull OptionList |
getInternalOptionList()
Returns all the internal options contained in this option manager.
|
@NotNull OptionDefinition |
getOptionDefinition(String name)
Get the option definition corresponding to the given option name.
|
OptionList |
getOptionList()
Gets the list of options managed this manager.
|
@NotNull OptionList |
getPublicOptionList()
Returns all the public options contained in this option manager.
|
void |
setLocalOption(OptionValue.Kind kind,
String name,
String value)
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 . |
getBoolean, getDefault, getDouble, getInt, getLong, getOption, getOption, getOption, getOption, getOption, getString
forEach, iterator, spliterator
void setLocalOption(String name, boolean value)
OptionManager
.name
- The name of the option.value
- The value of the option.void setLocalOption(String name, long value)
OptionManager
.name
- The name of the option.value
- The value of the option.void setLocalOption(String name, double value)
OptionManager
.name
- The name of the option.value
- The value of the option.void setLocalOption(String name, String value)
OptionManager
.name
- The name of the option.value
- The value of the option.void setLocalOption(String name, Object value)
OptionManager
.name
- The name of the option.value
- The value of the option.void setLocalOption(OptionValue.Kind kind, String name, String value)
OptionValue.Kind
on the OptionManager
.kind
- The kind of the option.name
- The name of the option.value
- The value of the option.void deleteLocalOption(String name)
SystemOptionManager.createDefaultOptionDefinitions()
),
but the option was not set within this manager, calling this method should be a no-op.name
- option nameUserException
- message to describe error with valuevoid deleteAllLocalOptions()
UserException
- message to describe error with value@NotNull @NotNull OptionDefinition getOptionDefinition(String name)
name
- The name of the option to retrieve a validator for.UserException
- - if the definition is not foundOptionList getOptionList()
@NotNull @NotNull OptionList getInternalOptionList()
@NotNull @NotNull OptionList getPublicOptionList()
Copyright © 1970 The Apache Software Foundation. All rights reserved.