Method new()
Constructor for initializing the configuration. Checks the local machine
for existing configuration file is load_config = TRUE. Ensures that all
the project configuration values are included.
Usage
Config$new(load_config = TRUE, config_path = NULL)
Arguments
load_config
load configuration from local machine if available
config_path
location of the used/stored configuration json file
Mehod for getting configuration value based on configuration key.
Configuratio item children are separated with a dot in the key notation.
Arguments
key
configuration property key for which to get the value
Method set()
Mehod for setting configuration value based on configuration key.
Configuration item children are separated with a dot in the key notation.
Usage
Config$set(key, value)
Arguments
key
configuration property key for which to get the value
value
value to set for the specified configuration key
Method for saving the current configuration data into local machine.
Method get_default_config()
Helper method for getting configuration default values. These default
values will be used in the configuration in case the configuration
properties are not present previously.
Usage
Config$get_default_config()
Method get_default_schema()
Method for getting the full configuration schema. Apart from the
configuration data, the schema contains property descriptions as well as
all possible values for the configuration properties.
Usage
Config$get_default_schema()
Method clone()
The objects of this class are cloneable with this method.
Usage
Config$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.