Class SystemPropertyConfiguration

    • Constructor Summary

      Constructors 
      Constructor Description
      SystemPropertyConfiguration()
      Creates a report configuration that includes all the system properties (whether they are related to reports or not).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        equals, 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 PropertyFileConfiguration.
    • Method Detail

      • 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 Configuration
        Overrides:
        getConfigProperty in class HierarchicalConfiguration
        Parameters:
        key - the property key.
        defaultValue - the default value.
        Returns:
        the property value.