public interface ChangeableConfiguration extends Configuration
Configuration by the means to change
the configuration values.
There are no means to distinguish between a non-present configuration entry and an entry with a null value. Users of this interface have to use an appropriate semantic for their configuration.
A configuration value may be fixed. This has to be checked before setting a value!
Configuration.ConfigurationIDs| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
remove(java.lang.String entryName)
Removes the value for the entry with the designated name from this
configuration.
|
void |
setBoolean(java.lang.String entryName,
boolean value)
Sets the boolean configuration value provided under the designated entry
name.
|
void |
setDate(java.lang.String entryName,
java.util.Date value)
Sets the
Date configuration value provided under the
designated entry name. |
void |
setFloat(java.lang.String entryName,
double value)
Sets the float configuration value provided under the designated entry
name.
|
void |
setInteger(java.lang.String entryName,
long value)
Sets the integer configuration value provided under the designated entry
name.
|
void |
setString(java.lang.String entryName,
java.lang.String value)
Sets the configuration value provided under the designated entry name as
string which will always work even if the designated entry is of another
type.
|
void |
setUDT(java.lang.String entryName,
byte[] value)
Sets the
UDTValue configuration value provided under the
designated entry name. |
void |
setURI(java.lang.String entryName,
java.net.URI value)
Sets the URI configuration value provided under the designated entry name.
|
getAllEntries, getBoolean, getConfigurationID, getDate, getFloat, getInteger, getString, getUDT, getURI, isFixedstatic final long serialVersionUID
void setBoolean(java.lang.String entryName,
boolean value)
entryName - The name of the entry for which to set the boolean value
of.value - A boolean configuration value for the designated entry name.void setInteger(java.lang.String entryName,
long value)
entryName - The name of the entry for which to set the integer value
of.value - An integer configuration value for the designated entry name.void setFloat(java.lang.String entryName,
double value)
entryName - The name of the entry for which to set the float value of.value - A float configuration value for the designated entry name.void setString(java.lang.String entryName,
java.lang.String value)
null. Note that the empty string is not
a valid typed value and therefore it will be interpreted as
null when accessing it with a type-safe method. However, the
empty string will be returned via Configuration.getString(String).entryName - The name of the entry for which to set the (string
representation of the) configuration value of.value - A (string representation of the) configuration value for the
designated entry name.void setURI(java.lang.String entryName,
java.net.URI value)
entryName - The name of the entry for which to set the URI value of.value - A URI configuration value for the designated entry name or
null in case the value is unset.void setDate(java.lang.String entryName,
java.util.Date value)
Date configuration value provided under the
designated entry name. This must not be null. Please check in
advance whether this entry refers to a Date configuration
value.entryName - The name of the entry for which to set the
Date value of.value - A Date configuration value for the designated
entry name. This must not be null.void setUDT(java.lang.String entryName,
byte[] value)
UDTValue configuration value provided under the
designated entry name. This must not be null. Please check in
advance whether this entry refers to a UDTValue configuration
value.entryName - The name of the entry for which to set the
UDTValue value of.value - A UDTValue configuration value for the designated
entry name. This must not be null.void remove(java.lang.String entryName)
entryName - The name of the configuration entry to remove from this
configuration. This must neither be null nor the empty string.