|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.base.config.HierarchicalConfiguration
public class HierarchicalConfiguration
A hierarchical configuration. Such a configuration can have one or more parent configurations providing usefull default values.
| Constructor Summary | |
|---|---|
HierarchicalConfiguration()
Creates a new configuration. |
|
HierarchicalConfiguration(Class booterClass)
Creates a new configuration, that is able to reconnect itself to the global configuration after deserialization. |
|
HierarchicalConfiguration(Configuration parentConfiguration)
Creates a new configuration. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchicalConfiguration()
public HierarchicalConfiguration(Configuration parentConfiguration)
parentConfiguration - the parent configuration.public HierarchicalConfiguration(Class booterClass)
booterClass - the booter class that holds the global configuration.| Method Detail |
|---|
public String getConfigProperty(String key)
getConfigProperty in interface Configurationkey - the property key.
public String getConfigProperty(String key,
String defaultValue)
getConfigProperty in interface Configurationkey - the property key.defaultValue - the default value.
public void setConfigProperty(String key,
String value)
setConfigProperty in interface ModifiableConfigurationkey - the property key.value - the property value.public boolean isLocallyDefined(String key)
key - the key that should be checked.
public void insertConfiguration(HierarchicalConfiguration config)
config - the new report configuration.public Enumeration getConfigProperties()
getConfigProperties in interface ConfigurationgetConfigProperties in interface ModifiableConfigurationpublic Iterator findPropertyKeys(String prefix)
findPropertyKeys in interface ConfigurationfindPropertyKeys in interface ModifiableConfigurationprefix - the prefix that all selected property keys should share
public Object clone()
throws CloneNotSupportedException
clone in interface Configurationclone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||