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