public class SystemPropertyConfiguration extends HierarchicalConfiguration
Constructor and Description |
---|
SystemPropertyConfiguration()
Creates a report configuration that includes all the system properties (whether they are
related to reports or not).
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
getConfigProperties()
Returns all defined configuration properties for the report.
|
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).
|
boolean |
isLocallyDefined(java.lang.String key)
Checks, whether the given key is locally defined in the system properties.
|
void |
setConfigProperty(java.lang.String key,
java.lang.String value)
Sets a configuration property.
|
clone, findPropertyKeys, getConfigProperty, insertConfiguration
public SystemPropertyConfiguration()
PropertyFileConfiguration
.public void setConfigProperty(java.lang.String key, java.lang.String value)
setConfigProperty
in interface ModifiableConfiguration
setConfigProperty
in class HierarchicalConfiguration
key
- the property key.value
- the property value.public java.lang.String getConfigProperty(java.lang.String key, java.lang.String defaultValue)
getConfigProperty
in interface Configuration
getConfigProperty
in class HierarchicalConfiguration
key
- the property key.defaultValue
- the default value.public boolean isLocallyDefined(java.lang.String key)
isLocallyDefined
in class HierarchicalConfiguration
key
- the key that should be checked.HierarchicalConfiguration.isLocallyDefined(String)
public java.util.Enumeration getConfigProperties()
getConfigProperties
in interface Configuration
getConfigProperties
in interface ModifiableConfiguration
getConfigProperties
in class HierarchicalConfiguration