| com.flexive.shared.interfaces.GenericConfigurationEngine
All known Subclasses: com.flexive.core.configuration.GenericConfigurationImpl,
Method Summary | |
T | get(Parameter<T> parameter) Retrieves the value of the given parameter. | T | get(Parameter<T> parameter, String key) Retrieves the value for the given parameter using the given key. | T | get(Parameter<T> parameter, String key, boolean ignoreDefault) Retrieves the value for the given parameter using the given key. | Map<String, T> | getAll(Parameter<T> parameter) Retrieves all key/value pairs stored under the path of the given parameter. | Collection<String> | getKeys(Parameter<T> parameter) Retrieves all keys stored under the path of the given parameter. | void | put(Parameter<T> parameter, T value) Set a parameter containing a value of type T . | void | put(Parameter<T> parameter, String key, T value) Set a parameter containing a value of type T using
the given key. | void | remove(Parameter<T> parameter) Removes a parameter from the database. | void | remove(Parameter<T> parameter, String key) Removes a parameter from the database using the given key. | void | removeAll(Parameter<T> parameter) Remove all parameters stored under this parameter's path. |
get | T get(Parameter<T> parameter, String key) throws FxApplicationException(Code) | | Retrieves the value for the given parameter using the given key. This method is
useful for getting a single value of aggregate parameters. When all values
for an aggregate parameter should be retrieved, use getParameters instead.
< Parameters: T - > value type of the parameter Parameters: parameter - parameter data containing the path Parameters: key - key to be used the value stored under the given path and key throws: FxApplicationException - TODO throws: FxLoadException - if the value could not be loaded throws: FxNotFoundException - if the parameter is not set |
get | T get(Parameter<T> parameter, String key, boolean ignoreDefault) throws FxApplicationException(Code) | | Retrieves the value for the given parameter using the given key. This method is
useful for getting a single value of aggregate parameters. When all values
for an aggregate parameter should be retrieved, use getParameters instead.
The default value may be disabled through the ignoreDefault parameter,
making this method more useful for checking if a parameter exists.
< Parameters: T - > value type of the parameter Parameters: parameter - parameter data containing the path Parameters: key - key to be used Parameters: ignoreDefault - if the parameter's default value should be used default the value stored under the given path and key throws: FxApplicationException - TODO throws: FxLoadException - if the value could not be loaded throws: FxNotFoundException - if the parameter is not set |
put | void put(Parameter<T> parameter, T value) throws FxApplicationException(Code) | | Set a parameter containing a value of type T .
< Parameters: T - > value type to be set (e.g. String, Integer, ...) Parameters: parameter - parameter data containing path and key Parameters: value - value to be set throws: FxApplicationException - TODO throws: FxUpdateException - if the value could not be set or updated throws: FxNoAccessException - if the caller is not allowed to update/set this parameter |
put | void put(Parameter<T> parameter, String key, T value) throws FxApplicationException(Code) | | Set a parameter containing a value of type T using
the given key. This method is useful for setting aggregate parameters with
varying keys.
Use getParameters(Parameter<T&g;t parameter) to retrieve a
map with all keys stored under the path of the given parameter.
< Parameters: T - > value type to be set Parameters: parameter - parameter data containing the path Parameters: key - key to be used for this value Parameters: value - value to be set throws: FxApplicationException - TODO throws: FxUpdateException - if the value could not be updated throws: FxNoAccessException - if the caller is not allowed to update/set this parameter |
|
|