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 |
---|---|
Enumeration |
getConfigProperties()
Returns all defined configuration properties for the report.
|
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).
|
boolean |
isLocallyDefined(String key)
Checks, whether the given key is locally defined in the system properties.
|
void |
setConfigProperty(String key,
String value)
Sets a configuration property.
|
clone, configurationLoaded, findPropertyKeys, getConfigProperty, getConfiguration, getParentConfig, insertConfiguration, isParentSaved, setParentConfig
public SystemPropertyConfiguration()
PropertyFileConfiguration
.public void setConfigProperty(String key, String value)
setConfigProperty
in interface ModifiableConfiguration
setConfigProperty
in class HierarchicalConfiguration
key
- the property key.value
- the property value.public String getConfigProperty(String key, String defaultValue)
If the property is not defined in this configuration, the code will lookup the property in the parent configuration.
getConfigProperty
in interface Configuration
getConfigProperty
in class HierarchicalConfiguration
key
- the property key.defaultValue
- the default value.public boolean isLocallyDefined(String key)
isLocallyDefined
in class HierarchicalConfiguration
key
- the key that should be checked.HierarchicalConfiguration.isLocallyDefined(java.lang.String)
public Enumeration getConfigProperties()
getConfigProperties
in interface ModifiableConfiguration
getConfigProperties
in interface Configuration
getConfigProperties
in class HierarchicalConfiguration
Copyright © 2001–2018 JFree.org. All rights reserved.