org.jfree.util
Interface Configuration
- Cloneable, Serializable
- ExtendedConfiguration
- DefaultConfiguration, ExtendedConfigurationWrapper, FrontendDefaultHandler, Parser, RootXmlReadHandler
extends Serializable, Cloneable
A simple query interface for a configuration.
Object | clone() - Returns a clone of the object.
|
Iterator | findPropertyKeys(String prefix) - Returns all keys with the given prefix.
|
Enumeration | getConfigProperties() - Returns the configuration properties.
|
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).
|
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the object.
findPropertyKeys
public Iterator findPropertyKeys(String prefix)
Returns all keys with the given prefix.
- the iterator containing all keys with that prefix
getConfigProperties
public Enumeration getConfigProperties()
Returns the configuration properties.
- The configuration properties.
getConfigProperty
public String getConfigProperty(String key)
Returns the configuration property with the specified key.
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.
key
- the property key.defaultValue
- the default value.