|
|||||||||
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)
|
|
HierarchicalConfiguration(Configuration parentConfiguration)
Creates a new configuration. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of the object. |
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). |
protected java.util.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(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. |
protected void |
setParentConfig(Configuration config)
Set the parent configuration. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, 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)
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.
protected java.util.Properties getConfiguration()
public void insertConfiguration(HierarchicalConfiguration config)
config
- the new report configuration.protected void setParentConfig(Configuration config)
config
- the parent configuration.protected Configuration getParentConfig()
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
Configuration
clone
in interface Configuration
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if cloning is not supported for some reason.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |