| java.lang.Object org.jfree.util.ExtendedConfigurationWrapper
ExtendedConfigurationWrapper | public class ExtendedConfigurationWrapper implements ExtendedConfiguration(Code) | | A wrapper for the extended configuration interface around a plain configuration.
author: Thomas Morgner |
ExtendedConfigurationWrapper | public ExtendedConfigurationWrapper(Configuration parent)(Code) | | Creates a wrapper around the given configuration.
Parameters: parent - the wrapped up configuration. throws: NullPointerException - if the parent is null. |
findPropertyKeys | public Iterator findPropertyKeys(String prefix)(Code) | | Returns all keys with the given prefix.
Parameters: prefix - the prefix the iterator containing all keys with that prefix |
getBoolProperty | public boolean getBoolProperty(String name)(Code) | | Returns the boolean value of a given configuration property. The boolean value true
is returned, if the contained string is equal to 'true'.
Parameters: name - the name of the property the boolean value of the property. |
getBoolProperty | public boolean getBoolProperty(String name, boolean defaultValue)(Code) | | 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.
Parameters: name - the name of the property Parameters: defaultValue - the default value to be returned if the property is not set the boolean value of the property. |
getConfigProperty | public String getConfigProperty(String key)(Code) | | Returns the configuration property with the specified key.
Parameters: key - the property key. the property value. |
getConfigProperty | public String getConfigProperty(String key, String defaultValue)(Code) | | 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.
Parameters: key - the property key. Parameters: defaultValue - the default value. the property value. |
getIntProperty | public int getIntProperty(String name)(Code) | | Returns a given property as int value. Zero is returned if the
property value is no number or the property is not set.
Parameters: name - the name of the property the parsed number value or zero |
getIntProperty | public int getIntProperty(String name, int defaultValue)(Code) | | 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.
Parameters: name - the name of the property Parameters: defaultValue - the value to be returned if the property is no integer value the parsed number value or the specified default value |
isPropertySet | public boolean isPropertySet(String name)(Code) | | Checks, whether a given property is defined.
Parameters: name - the name of the property true, if the property is defined, false otherwise. |
|
|