org.jfree.util
Class ExtendedConfigurationWrapper
java.lang.Object
org.jfree.util.ExtendedConfigurationWrapper
- Configuration, ExtendedConfiguration, Serializable
A wrapper for the extended configuration interface around a plain configuration.
Iterator | findPropertyKeys(String prefix) - Returns all keys with the given prefix.
|
boolean | getBoolProperty(String name) - Returns the boolean value of a given configuration property.
|
boolean | getBoolProperty(String name, boolean defaultValue) - Returns the boolean value of a given configuration property.
|
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).
|
int | getIntProperty(String name) - Returns a given property as int value.
|
int | getIntProperty(String name, int defaultValue) - Returns a given property as int value.
|
boolean | isPropertySet(String name) - Checks, whether a given property is defined.
|
getBoolProperty
public boolean getBoolProperty(String name)
Returns the boolean value of a given configuration property. The boolean value true
is returned, if the contained string is equal to 'true'.
- getBoolProperty in interface ExtendedConfiguration
name
- the name of the property
- the boolean value of the property.
getBoolProperty
public boolean getBoolProperty(String name,
boolean defaultValue)
Returns the boolean value of a given configuration property. The boolean value true
is returned, if the contained string is equal to 'true'. If the property is not set,
the default value is returned.
- getBoolProperty in interface ExtendedConfiguration
name
- the name of the propertydefaultValue
- the default value to be returned if the property is not set
- the boolean value of the property.
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.
getIntProperty
public int getIntProperty(String name)
Returns a given property as int value. Zero is returned if the
property value is no number or the property is not set.
- getIntProperty in interface ExtendedConfiguration
name
- the name of the property
- the parsed number value or zero
getIntProperty
public int getIntProperty(String name,
int defaultValue)
Returns a given property as int value. The specified default value is returned if the
property value is no number or the property is not set.
- getIntProperty in interface ExtendedConfiguration
name
- the name of the propertydefaultValue
- the value to be returned if the property is no integer value
- the parsed number value or the specified default value