java.io.Serializable
, java.lang.Cloneable
, java.util.Map<java.lang.Object,java.lang.Object>
, org.jfree.base.config.ModifiableConfiguration
, Configuration
public class DefaultConfiguration extends java.util.Properties implements org.jfree.base.config.ModifiableConfiguration
Constructor | Description |
---|---|
DefaultConfiguration() |
Creates an empty property list with no default values.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Iterator |
findPropertyKeys(java.lang.String prefix) |
Searches all property keys that start with a given prefix.
|
java.util.Enumeration |
getConfigProperties() |
Returns the configuration properties.
|
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).
|
void |
setConfigProperty(java.lang.String key,
java.lang.String value) |
Sets the value of a configuration property.
|
clone
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
public DefaultConfiguration()
public java.lang.String getConfigProperty(java.lang.String key)
getConfigProperty
in interface Configuration
key
- the property key.public java.lang.String getConfigProperty(java.lang.String key, java.lang.String defaultValue)
getConfigProperty
in interface Configuration
key
- the property key.defaultValue
- the default value.public java.util.Iterator findPropertyKeys(java.lang.String prefix)
findPropertyKeys
in interface Configuration
findPropertyKeys
in interface org.jfree.base.config.ModifiableConfiguration
prefix
- the prefix that all selected property keys should sharepublic java.util.Enumeration getConfigProperties()
org.jfree.base.config.ModifiableConfiguration
getConfigProperties
in interface Configuration
getConfigProperties
in interface org.jfree.base.config.ModifiableConfiguration
public void setConfigProperty(java.lang.String key, java.lang.String value)
setConfigProperty
in interface org.jfree.base.config.ModifiableConfiguration
key
- the property key.value
- the property value.