org.jfree.util
Class DefaultConfiguration
Properties
org.jfree.util.DefaultConfiguration
- Configuration, Serializable
Default configuration.
Iterator | findPropertyKeys(String prefix) - Searches all property keys that start with a given prefix.
|
Enumeration | getConfigProperties()
|
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).
|
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 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.