org.jfree.util
Class DefaultConfiguration
Properties
org.jfree.util.DefaultConfiguration
- org.jfree.base.config.ModifiableConfiguration
extends Properties
implements org.jfree.base.config.ModifiableConfiguration
Default configuration.
Iterator | findPropertyKeys(String prefix) - Searches all property keys that start with a given prefix.
|
Enumeration | getConfigProperties() - Returns an enumeration of the property keys.
|
String | getConfigProperty(String key) - Returns the configuration property with the specified key.
|
String | getConfigProperty(String key, String defaultValue) - Returns the configuration property with the specified key (or the
specified default value if there is no such property).
|
void | setConfigProperty(String key, String value) - Sets the value of a configuration property.
|
DefaultConfiguration
public DefaultConfiguration()
Creates an empty property list with no default values.
findPropertyKeys
public Iterator findPropertyKeys(String prefix)
Searches all property keys that start with a given prefix.
- findPropertyKeys in interface org.jfree.base.config.ModifiableConfiguration
- findPropertyKeys in interface Configuration
prefix
- the prefix that all selected property keys should share
- the properties as iterator.
getConfigProperty
public String getConfigProperty(String key,
String defaultValue)
Returns the configuration property with the specified key (or the
specified default value if there is no such property).
If the property is not defined in this configuration, the code will
lookup the property in the parent configuration.
- getConfigProperty in interface Configuration
key
- the property key.defaultValue
- the default value.
setConfigProperty
public void setConfigProperty(String key,
String value)
Sets the value of a configuration property.
- setConfigProperty in interface org.jfree.base.config.ModifiableConfiguration
key
- the property key.value
- the property value.