|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConfiguration
This interface is used in the configurator framework in order to hold and provide configuration parameters. These parameters are keyed values of Strings or arrays of Strings.
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
getKeys()
Get the keys of all currently registered parameters. |
java.lang.String |
getParameter(java.lang.String key)
Get the parameter corresponding to the specified key. |
java.lang.String[] |
getParameters(java.lang.String key)
Get the parameter corresponding to the specified key. |
void |
loadFromXML(IFileStore store)
Load the configuration from the specified file store. |
void |
storeToXML(IFileStore store)
Save this configuration to the specified file store. |
| Method Detail |
|---|
java.util.Set<java.lang.String> getKeys()
Set of keys for all currently registered parameters.java.lang.String getParameter(java.lang.String key)
null will be returned.
key - The key of the parameter to be returned.
null if either the
paremeter does not exist or if the specified key corresponds to a
multi-string parameter.java.lang.String[] getParameters(java.lang.String key)
null will be returned. If the
parameter corresponds to a single-string this string is wrapped into a
one-element array before returning.
key - The key of the parameter to be returned.
null if no such
parameter exists.
void loadFromXML(IFileStore store)
throws ProblemException
store - The IFileStore from which to load the parameters.
ProblemException - If the file store does not exists or an error
occurs while reading the data from the file store.
void storeToXML(IFileStore store)
throws ProblemException
store - The IFileStore to which to save the configuration.
ProblemException - If an error occurs while saving the configuration.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||