com.jrefinery.report.util
Class SystemPropertyConfiguration

java.lang.Object
  extended bycom.jrefinery.report.util.ReportConfiguration
      extended bycom.jrefinery.report.util.SystemPropertyConfiguration
All Implemented Interfaces:
org.jfree.util.Configuration, java.io.Serializable

public class SystemPropertyConfiguration
extends ReportConfiguration

A property configuration based on system properties.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jrefinery.report.util.ReportConfiguration
AVAILABLE_ENCODINGS, AVAILABLE_ENCODINGS_ALL, AVAILABLE_ENCODINGS_FILE, AVAILABLE_ENCODINGS_NONE, CSV_OUTPUT_ENCODING, CSV_OUTPUT_ENCODING_DEFAULT, DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT, ENABLE_EXPORT_CSV, ENABLE_EXPORT_EXCEL, ENABLE_EXPORT_HTML, ENABLE_EXPORT_PDF, ENABLE_EXPORT_PLAIN, ENCODINGS_DEFINITION_FILE, ENCODINGS_DEFINITION_FILE_DEFAULT, G2TARGET_ISBUGGY_FRC, G2TARGET_ISBUGGY_FRC_DEFAULT, G2TARGET_USEALIASING, G2TARGET_USEALIASING_DEFAULT, HTML_OUTPUT_ENCODING, HTML_OUTPUT_ENCODING_DEFAULT, LOGLEVEL, LOGLEVEL_DEFAULT, LOGTARGET, LOGTARGET_DEFAULT, PARSER_VALIDATE, PARSER_VALIDATE_DEFAULT, PDFTARGET_AUTOINIT, PDFTARGET_AUTOINIT_DEFAULT, PDFTARGET_EMBED_FONTS, PDFTARGET_EMBED_FONTS_DEFAULT, PDFTARGET_ENCODING, PDFTARGET_ENCODING_DEFAULT, PREVIEW_MAXIMUM_HEIGHT, PREVIEW_MAXIMUM_WIDTH, PREVIEW_PREFERRED_HEIGHT, PREVIEW_PREFERRED_WIDTH, PRINT_OPERATION_COMMENT, PRINT_OPERATION_COMMENT_DEFAULT, REPORT_RESOURCE_BUNDLE, RESULTSET_FACTORY_MODE, STRICT_ERRORHANDLING, STRICT_ERRORHANDLING_DEFAULT, STRICT_TABLE_LAYOUT, STRICT_TABLE_LAYOUT_DEFAULT, TEXT_OUTPUT_ENCODING, TEXT_OUTPUT_ENCODING_DEFAULT, WARN_INVALID_COLUMNS, WARN_INVALID_COLUMNS_DEFAULT
 
Constructor Summary
SystemPropertyConfiguration()
          Creates a report configuration that includes all the system properties (whether they are related to reports or not).
 
Method Summary
 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 setConfigProperty(java.lang.String key, java.lang.String value)
          Sets a configuration property.
 
Methods inherited from class com.jrefinery.report.util.ReportConfiguration
getAvailableEncodings, getConfigProperties, getConfigProperty, getConfiguration, getCSVTargetEncoding, getEncodingsDefinitionFile, getGlobalConfig, getHTMLTargetEncoding, getLogLevel, getLogTarget, getPdfTargetEncoding, getTextTargetEncoding, isDisableLogging, isEnableExportCSV, isEnableExportExcel, isEnableExportHTML, isEnableExportPDF, isEnableExportPlain, isG2BuggyFRC, isG2TargetUseAliasing, isPDFTargetAutoInit, isPDFTargetEmbedFonts, isPrintOperationComment, isStrictErrorHandling, isStrictTableLayout, isValidateXML, isWarnInvalidColumns, setCSVTargetEncoding, setDisableLogging, setEnableExportCSV, setEnableExportExcel, setEnableExportHTML, setEnableExportPDF, setEnableExportPlain, setG2BuggyFRC, setG2TargetUseAliasing, setHTMLTargetEncoding, setLogLevel, setLogTarget, setParentConfig, setPDFTargetAutoInit, setPDFTargetEmbedFonts, setPdfTargetEncoding, setPrintOperationComment, setStrictErrorHandling, setStrictTableLayout, setValidateXML, setWarnInvalidColumns, setXMLTargetEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPropertyConfiguration

public SystemPropertyConfiguration()
Creates a report configuration that includes all the system properties (whether they are related to reports or not). The parent configuration is a PropertyFileReportConfiguration.

Method Detail

setConfigProperty

public void setConfigProperty(java.lang.String key,
                              java.lang.String value)
Sets a configuration property.

Overrides:
setConfigProperty in class ReportConfiguration
Parameters:
key - the property key.
value - the property value.

getConfigProperty

public 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).

If the property is not defined in this configuration, the code will lookup the property in the parent configuration.

Specified by:
getConfigProperty in interface org.jfree.util.Configuration
Overrides:
getConfigProperty in class ReportConfiguration
Parameters:
key - the property key.
defaultValue - the default value.
Returns:
the property value.