public class BooleanValue extends AbstractValue<Boolean>
attribute, configuration| Constructor and Description |
|---|
BooleanValue(Configuration configuration,
String attribute)
Creates a new boolean value that updates its value to the given attribute
from the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getValue()
Returns the wrapped value.
|
Boolean |
getValue(Boolean defaultValue)
Returns the wrapped value, if possible.
|
void |
setValue(Boolean newValue)
Sets a new wrapped value.
|
public BooleanValue(Configuration configuration, String attribute)
configuration - The configuration that created this valueattribute - The name of this value’s attribute namepublic Boolean getValue() throws ConfigurationException
ConfigurationException - if a configuration error occursValue.getValue()public Boolean getValue(Boolean defaultValue)
defaultValue - The default value to return in case of an errorValue.getValue(java.lang.Object)public void setValue(Boolean newValue) throws ConfigurationException
newValue - The new wrapped valueConfigurationException - if a configuration error occursValue.setValue(java.lang.Object)Copyright © 2026. All rights reserved.