Method Summary |
|
boolean | getBoolean(String name) Convenience method to extract the value of a boolean type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
Configuration | getChild(String namespaceURI, Object id) Returns the child configuration of the type specified in the namespaceURI and with the
specified identifier if there is one, otherwise null.
Parameters: id - the identifier of the child configuration. |
double | getDouble(String name) Convenience method to extract the value of a double type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
float | getFloat(String name) Convenience method to extract the value of a float type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
Object | getId() Returns the identifier for this configuration instance (unique within all instances
configuration instances for the same metadata model). |
int | getInt(String name) Convenience method to extract the value of an int type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
long | getLong(String name) Convenience method to extract the value of a long type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
ConfigurationMetadata | getModel() Returns the configuration metadata model for this Configuration . |
Object | getObject(String name) Returns the object holding the value for the configuration item with the specified name. |
T | getObject(Class<T> cls, String name) Returns the object holding the value for the configuration item with the specified name. |
Configuration | getParent() Returns the parent configuration of this configuration, or null if there is no
parent. |
List<ConfigurationProvider> | getProviders() Returns the list of configuration providers for this configuration. |
short | getShort(String name) Convenience method to extract the value of a short type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
String | getString(String name) Convenience method to extract the value of a string type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
List<String> | getStringList(String name) Convenience method to extract the value of a string list type configuration item from
its holder object.
Parameters: name - the name of the configuration item. |
boolean | save() |
boolean | setBoolean(String name, boolean value) Convenience method to set the value of a boolean type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |
boolean | setDouble(String name, double value) Convenience method to set the value of a double type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |
boolean | setFloat(String name, float value) Convenience method to set the value of a float type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |
boolean | setInt(String name, int value) Convenience method to set the value of a int type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |
boolean | setLong(String name, long value) Convenience method to set the value of a long type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |
boolean | setObject(String name, Object value) Changes the value of the configuration item identified by the name to the given value.
throws: ConfigurationException - if no such item is defined in this configuration's metadata model, or if the value is illegal. |
void | setProviders(List<ConfigurationProvider> providers) Sets the list of configuration providers for this configuration - these will be
consulted in orde when looking up the value for a particular configuration item. |
boolean | setShort(String name, short value) Convenience method to set the value of a short type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |
boolean | setString(String name, String value) Convenience method to set the value of a String type configuration item to
its holder object.
Parameters: name - the name of the configuration item. Parameters: value - the value of the configuration item. |