org.pentaho.reporting.libraries.base.config
public class HierarchicalConfiguration extends Object implements ModifiableConfiguration
Constructor Summary | |
---|---|
HierarchicalConfiguration()
Creates a new configuration. | |
HierarchicalConfiguration(Configuration parentConfiguration)
Creates a new configuration.
| |
HierarchicalConfiguration(Class booterClass) |
Method Summary | |
---|---|
Object | clone() |
Iterator | findPropertyKeys(String prefix)
Searches all property keys that start with a given prefix.
|
Enumeration | getConfigProperties()
Returns all defined configuration properties for the report. |
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).
|
protected Properties | getConfiguration()
Returns the collection of properties for the configuration.
|
protected Configuration | getParentConfig()
Returns the parent configuration. |
void | insertConfiguration(HierarchicalConfiguration config)
The new configuartion will be inserted into the list of report
configuration, so that this configuration has the given report
configuration instance as parent.
|
boolean | isLocallyDefined(String key)
Checks, whether the given key is localy defined in this instance or
whether the key's value is inherited.
|
void | setConfigProperty(String key, String value)
Sets a configuration property.
|
protected void | setParentConfig(Configuration config)
Set the parent configuration. |
Parameters: parentConfiguration the parent configuration.
Parameters: prefix the prefix that all selected property keys should share
Returns: the properties as iterator.
Returns: all defined configuration properties for the report.
Parameters: key the property key.
Returns: the property value.
Parameters: key the property key. defaultValue the default value.
Returns: the property value.
Returns: the properties.
Returns: the parent configuration.
Parameters: config the new report configuration.
Parameters: key the key that should be checked.
Returns: true, if the key is defined locally, false otherwise.
Parameters: key the property key. value the property value.
Parameters: config the parent configuration.