|
||||||||||
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(java.lang.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 | |
---|---|
java.lang.Object |
clone()
Clones this configuration. |
java.util.Iterator |
findPropertyKeys(java.lang.String prefix)
Searches all property keys that start with a given prefix. |
java.util.Enumeration |
getConfigProperties()
Returns all defined configuration properties for the report. |
java.lang.String |
getConfigProperty(java.lang.String key)
Returns the configuration property with the specified key. |
java.lang.String |
getConfigProperty(java.lang.String key,
java.lang.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(java.lang.String key)
Checks, whether the given key is localy defined in this instance or whether the key's value is inherited. |
void |
setConfigProperty(java.lang.String key,
java.lang.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(java.lang.Class booterClass)
booterClass
- the booter class that holds the global configuration.Method Detail |
---|
public java.lang.String getConfigProperty(java.lang.String key)
getConfigProperty
in interface Configuration
key
- the property key.
public java.lang.String getConfigProperty(java.lang.String key, java.lang.String defaultValue)
getConfigProperty
in interface Configuration
key
- the property key.defaultValue
- the default value.
public void setConfigProperty(java.lang.String key, java.lang.String value)
setConfigProperty
in interface ModifiableConfiguration
key
- the property key.value
- the property value.public boolean isLocallyDefined(java.lang.String key)
key
- the key that should be checked.
public void insertConfiguration(HierarchicalConfiguration config)
config
- the new report configuration.public java.util.Enumeration getConfigProperties()
getConfigProperties
in interface Configuration
getConfigProperties
in interface ModifiableConfiguration
public java.util.Iterator findPropertyKeys(java.lang.String prefix)
findPropertyKeys
in interface Configuration
findPropertyKeys
in interface ModifiableConfiguration
prefix
- the prefix that all selected property keys should share
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Configuration
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |