public interface ChangeableConfigurationDescription extends ConfigurationDescription
ConfigurationDescription by the means
to add or remove configuration entries. Configuration entries are identified
by their name, therefore it suffices to remove by name while adding requires
complete objects.
When removing an entry, also adapt the corresponding configuration(s)!
ConfigurationDescription.ConfigurationEntry| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeEntry(java.lang.String name)
Removes the entry with the designated name from this configuration
description.
|
void |
setEntry(ConfigurationDescription.ConfigurationEntry entry)
Adds or updates the designated configuration entry to/of this description.
|
getEntries, getEntrystatic final long serialVersionUID
void setEntry(ConfigurationDescription.ConfigurationEntry entry)
A configuration entry is identified by its name, therefore if an entry with the designated name already exists, an update will be performed, otherwise a new entry will be created. The name must neither be null nor the empty string.
entry - The new or changed configuration entry for this description.
Whether it is new or updated depends on the name of the entry.
When updating the type or restrictions of the entry, configuration
values of the corresponding configurations may be
removed. This must not have null or the empty string as name.void removeEntry(java.lang.String name)
name - The name of the configuration entry to remove from this
configuration description. This must neither be null nor the empty
string.