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)
Creates a new configuration, that is able to reconnect itself to the global configuration after deserialization.
|
Method Summary | |
---|---|
Object | clone()
Clones this configuration.
|
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).
|
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.
|
Parameters: parentConfiguration the parent configuration.
Parameters: booterClass the booter class that holds the global configuration.
Returns: a clone of this configuration.
Throws: CloneNotSupportedException
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.
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.