|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.base.config.ExtendedConfigurationWrapper
public class ExtendedConfigurationWrapper
A wrapper for the extended configuration interface around a plain configuration.
Constructor Summary | |
---|---|
ExtendedConfigurationWrapper(Configuration parent)
Creates a wrapper around the given configuration. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of the object. |
Iterator |
findPropertyKeys(String prefix)
Returns all keys with the given prefix. |
boolean |
getBoolProperty(String name)
Returns the boolean value of a given configuration property. |
boolean |
getBoolProperty(String name,
boolean defaultValue)
Returns the boolean value of a given configuration property. |
Enumeration |
getConfigProperties()
Returns the configuration properties. |
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). |
int |
getIntProperty(String name)
Returns a given property as int value. |
int |
getIntProperty(String name,
int defaultValue)
Returns a given property as int value. |
boolean |
isPropertySet(String name)
Checks, whether a given property is defined. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedConfigurationWrapper(Configuration parent)
parent
- the wrapped up configuration.
NullPointerException
- if the parent is null.Method Detail |
---|
public boolean getBoolProperty(String name)
getBoolProperty
in interface ExtendedConfiguration
name
- the name of the property
public boolean getBoolProperty(String name, boolean defaultValue)
getBoolProperty
in interface ExtendedConfiguration
name
- the name of the propertydefaultValue
- the default value to be returned if the property is not set
public int getIntProperty(String name)
getIntProperty
in interface ExtendedConfiguration
name
- the name of the property
public int getIntProperty(String name, int defaultValue)
getIntProperty
in interface ExtendedConfiguration
name
- the name of the propertydefaultValue
- the value to be returned if the property is no integer value
public boolean isPropertySet(String name)
isPropertySet
in interface ExtendedConfiguration
name
- the name of the property
public Iterator findPropertyKeys(String prefix)
findPropertyKeys
in interface Configuration
prefix
- the prefix
public String getConfigProperty(String key)
getConfigProperty
in interface Configuration
key
- the property key.
public String getConfigProperty(String key, String defaultValue)
getConfigProperty
in interface Configuration
key
- the property key.defaultValue
- the default value.
public Enumeration getConfigProperties()
Configuration
getConfigProperties
in interface Configuration
public Object clone() throws CloneNotSupportedException
Configuration
clone
in interface Configuration
clone
in class Object
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 |