public class DefaultConfiguration extends Properties implements ModifiableConfiguration
defaults| Constructor and Description |
|---|
DefaultConfiguration()
Creates an empty property list with no default values.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitclonepublic DefaultConfiguration()
public String getConfigProperty(String key)
getConfigProperty in interface Configurationkey - the property key.public String getConfigProperty(String key, String defaultValue)
getConfigProperty in interface Configurationkey - the property key.defaultValue - the default value.public Iterator findPropertyKeys(String prefix)
findPropertyKeys in interface ModifiableConfigurationfindPropertyKeys in interface Configurationprefix - the prefix that all selected property keys should sharepublic Enumeration getConfigProperties()
getConfigProperties in interface ModifiableConfigurationgetConfigProperties in interface Configurationpublic void setConfigProperty(String key, String value)
setConfigProperty in interface ModifiableConfigurationkey - the property key.value - the property value.Copyright © 2009-2012 jtstand.com. All Rights Reserved.