public class DefaultConfiguration extends java.util.Properties implements Configuration
| Constructor and Description |
|---|
DefaultConfiguration()
Creates an empty property list with no default values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
findPropertyKeys(java.lang.String prefix)
Searches all property keys that start with a given prefix.
|
java.lang.String |
getConfigProperty(java.lang.String key)
Returns the configuration property with the specified key.
|
java.lang.String |
getConfigProperty(java.lang.String key,
java.lang.String defaultValue)
Returns the configuration property with the specified key (or the specified default value
if there is no such property).
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamespublic DefaultConfiguration()
public java.lang.String getConfigProperty(java.lang.String key)
getConfigProperty in interface Configurationkey - the property key.public java.lang.String getConfigProperty(java.lang.String key,
java.lang.String defaultValue)
If the property is not defined in this configuration, the code will lookup the property in the parent configuration.
getConfigProperty in interface Configurationkey - the property key.defaultValue - the default value.public java.util.Iterator findPropertyKeys(java.lang.String prefix)
findPropertyKeys in interface Configurationprefix - the prefix that all selected property keys should share