|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configuration
Defines the basic interface for all configuration used in the EODiSP. It is defined independent of any backend (persistence) or front-end (e.g: GUI, command-line) mechanism. Even though it is possible to specify the type of a configuration entry, no validation of values is done. This is left to the user of this class.
Nested Class Summary | |
---|---|
static interface |
Configuration.Entry
This interface represents one entry (option) of a configuration. |
Method Summary | |
---|---|
boolean |
containsEntry(java.lang.String key)
Returns whether this configuration contains an entry with the given key. |
Configuration.Entry[] |
entries()
Returns a safe array of all configuration entries of this configuration.. |
java.lang.String |
getDescription()
The description of this configuration. |
Configuration.Entry |
getEntry(java.lang.String key)
Returns the entry with the given key. |
java.lang.String |
getId()
The id is used as the registration key if the configuration is registered with and application. |
java.lang.String |
getName()
Returns the name of the configuration. |
void |
load()
Load the configuration from its stored location. |
boolean |
needsSave()
Indicates if this configuration needs to be saved. |
void |
save()
Saves the configuration to a persistent storage. |
Method Detail |
---|
void load() throws java.io.IOException
java.io.IOException
- Indicates an error while loading.Configuration.Entry getEntry(java.lang.String key)
key
- the key of the entry that shall be returned.
boolean containsEntry(java.lang.String key)
null
and a non-existing entry.
key
- the key of the entry that shall be returned.
void save() throws java.io.IOException
Configuration.Entry.isSet()
returns true.
java.io.IOException
- Indicates an error while saving.Configuration.Entry[] entries()
java.lang.String getName()
java.lang.String getId()
java.lang.String getDescription()
boolean needsSave()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |