Reads the configuration parameters described in the panel from the
ConfigSettings and and sets the contained values.

@param config
Reference to the ConfigSettings object
508479
@Override
	public void applyConfig(final ConfigSettings config)
	{

		Object o = config
				.getConfigParameter(ConfigurationKeys.PATH_OUTPUT_SQL_FILES);
		if (o != null) {
			this.outputPathField.setText((String) o);
		}
		else {
			this.outputPathField.setText("");
		}

		o = config
				.getConfigParameter(ConfigurationKeys.MODE_ZIP_COMPRESSION_ENABLED);
		if (o != null) {
			controller.setEnableZipCompression((Boolean) o);
		}
		else {
			controller.setEnableZipCompression(false);
		}

		o = config
				.getConfigParameter(ConfigurationKeys.MODE_DATAFILE_OUTPUT);
		if (o != null) {
			controller.setEnableDataFileOutput((Boolean) o);
		}
		else {
			controller.setEnableDataFileOutput(false);
		}

		o = config.getConfigParameter(ConfigurationKeys.MODE_OUTPUT);
		if (o != null) {
			switch ((OutputType) o) {
			case UNCOMPRESSED:
				controller.setEnableSQLDatabaseOutput(false);
				controller.setOutputCompression(OutputCompressionEnum.None);

				o = config
						.getConfigParameter(ConfigurationKeys.LIMIT_SQL_FILE_SIZE);
				break;
			case SEVENZIP:
				controller.setEnableSQLDatabaseOutput(false);
				controller.setOutputCompression(OutputCompressionEnum.SevenZip);

				o = config
						.getConfigParameter(ConfigurationKeys.LIMIT_SQL_ARCHIVE_SIZE);
				break;
			case BZIP2:
				controller.setEnableSQLDatabaseOutput(false);
				controller.setOutputCompression(OutputCompressionEnum.BZip2);

				o = config
						.getConfigParameter(ConfigurationKeys.LIMIT_SQL_ARCHIVE_SIZE);
				break;
			case DATABASE:
				controller.setEnableSQLDatabaseOutput(true);
				controller.setOutputCompression(OutputCompressionEnum.None);

				o = null;
				break;
			}
		}

		if (o != null) {
			controller.setMultipleOutputFiles(true);
			this.outputSizeLimitField.setText(Long.toString((Long) o));
		}
		else {
			controller.setMultipleOutputFiles(false);
			this.outputSizeLimitField.setText("");
		}
	}
1062030
public final void initConfiguration(String config) {

        m_configuration = config;
        m_configurationMap = CmsStringUtil.splitAsMap(config, "|", ":");
        m_configurationMap.put(CmsContentDefinition.PARAM_INIT_CALL, INIT_FUNCTION_PREFIX + getName());
        m_jsonConfig = new JSONObject(new HashMap<String, Object>(m_configurationMap));
    }
610664
@Override
	public void applyConfig(final ConfigSettings config)
	{

		Object o = config
				.getConfigParameter(ConfigurationKeys.WIKIPEDIA_ENCODING);
		if (o != null) {
			encodingField.setText((String) o);
		}
		else {
			encodingField.setText("");
		}

		o = config.getConfigParameter(ConfigurationKeys.MODE_SURROGATES);
		if (o != null) {
			controller.setSurrogates((SurrogateModes) o);
		}
		else {
			controller.setSurrogates(SurrogateModes.DISCARD_REVISION);
		}
	}
838729
@Override
    public void config(String msg) {
        if (isLoggable(Level.CONFIG)) {
            log(Level.CONFIG, msg);
        }
    }
1262238
public void setConfigFile(final String config) {
        if (config == null) {
            throw (new IllegalArgumentException(
                    "Configuration file parameter is null"));
        }
        File file = new File(config);
        if (file.exists()) {
            if (file.isDirectory()) {
                throw new IllegalArgumentException("Folder " + config
                        + " is not a configuration file");
            }
        } else {
            throw new IllegalArgumentException("Configuration file " + config
                    + " not found");
        }
        setConfigFile(file);
    }
477822
public void load(Configuration config)
	{
		String comment = "";
		for (String c : comments)
		{
			if (MalisisCore.isClient())
				comment += I18n.format(c) + " ";
			else
				comment += c + " ";
		}

		property = config.get(category, key, writeValue(defaultValue), comment, type);
		value = readValue(property.getString());
		if (value == null)
			throw new NullPointerException("readPropertyValue should not return null!");
	}
661739
public function setConfig($config = array()) 
    { 

    	if(is_array($config) ) {

    		if(!empty($config)) {
    			foreach($config as $key=>$value) {

    				$this->_config[$key] = $value;
    			}
    		}

     	} else {
    		
    		throw new Exception( "Invalid parameter");
    	}

    }
1292939
@Override
    public void setConfig(Config config) {
        String prefix = CosineSimilarityRelatedPostsFinder.class.getName();
        String categoriesFactorKey = prefix + ".categories.factor";
        String tagsFactorKey = prefix + ".tags.factor";

        this.size = config.get("related_posts", size);
        this.categoriesFactor = config.get(categoriesFactorKey, this.categoriesFactor);
        this.tagsFactor = config.get(tagsFactorKey, this.tagsFactor);

        log.debug("Set {}: {}", categoriesFactorKey, categoriesFactor);
        log.debug("Set {}: {}", tagsFactorKey, tagsFactor);
    }
1064597
public void setConfigurations(java.util.Collection<Configuration> configurations) {
        if (configurations == null) {
            this.configurations = null;
            return;
        }

        this.configurations = new java.util.ArrayList<Configuration>(configurations);
    }
1351799
@Override
	public void applyConfig(final ConfigSettings config)
	{

		Object o = config
				.getConfigParameter(ConfigurationKeys.LIMIT_TASK_SIZE_REVISIONS);
		if (o != null) {
			this.articleTaskLimitField.setText(Long.toString((Long) o));
		}
		else {
			this.articleTaskLimitField.setText("");
		}

		o = config.getConfigParameter(ConfigurationKeys.LIMIT_TASK_SIZE_DIFFS);
		if (o != null) {
			this.diffTaskLimitField.setText(Long.toString((Long) o));
		}
		else {
			this.diffTaskLimitField.setText("");
		}

		o = config
				.getConfigParameter(ConfigurationKeys.LIMIT_SQLSERVER_MAX_ALLOWED_PACKET);
		if (o != null) {
			this.maxAllowedPacketField.setText(Long.toString((Long) o));
		}
		else {
			this.maxAllowedPacketField.setText("");
		}
	}
614897
public void setSettings(LinkedHashMap<String, Object> settings) {
        Settings.Builder builder = Settings.settingsBuilder();
        for (Map.Entry<String, Object> entry : settings.entrySet()) {
            builder.put(entry.getKey(), entry.getValue());
        }
        this.settings = builder.build();
    }
949212
public void configure(Configuration config) throws ConfigurationException
    {
        LoggingConfiguration lc = (LoggingConfiguration) config;
        String levelName = lc.getLogLevel(name);
        setLevel(levelName);
    }
169566
private void parseConfig(String config) {

        if (isValidConfig(config)) {
            String[] conf = config.split("x");
            if (conf[0].trim().equals("?")) {
                m_width = I_CmsFormatRestriction.DIMENSION_NOT_SET;
            } else {
                m_width = CmsClientStringUtil.parseInt(conf[0]);
                m_width = (m_width == 0) ? I_CmsFormatRestriction.DIMENSION_NOT_SET : m_width;
            }
            if (conf[1].trim().equals("?")) {
                m_height = I_CmsFormatRestriction.DIMENSION_NOT_SET;
            } else {
                m_height = CmsClientStringUtil.parseInt(conf[1]);
                m_height = (m_height == 0) ? I_CmsFormatRestriction.DIMENSION_NOT_SET : m_height;
            }
        }
    }
311863
async def set_config(self, config):
        
        config_facade = client.ModelConfigFacade.from_connection(
            self.connection()
        )
        for key, value in config.items():
            if isinstance(value, ConfigValue):
                config[key] = value.value
        await config_facade.ModelSet(config)
848293
public void applyConfiguration(final ConfigSettings config)
	{

		clear();

		Iterator<ArchiveDescription> aIt = config.archiveIterator();
		while (aIt.hasNext()) {
			addArchive(aIt.next());
		}
	}
1361150
public void setConfig(LogFileConfiguration config) {
        this.config = config == null ? null : config.readOnlyCopy();
        if (config == null) {
            Log.w(
                DOMAIN,
                "Database.log.getFile().getConfig() is now null, meaning file logging is disabled.  "
                    + "Log files required for product support are not being generated.");
        }

        updateConfig();
    }
1183206
@Override
	public void applyConfig(final ConfigSettings config)
	{
		Object o = config
				.getConfigParameter(ConfigurationKeys.VERIFICATION_DIFF);
		if (o != null) {
			controller.setEnableDiffVerification((Boolean) o);
		}
		else {
			controller.setEnableDiffVerification(false);
		}

		o = config.getConfigParameter(ConfigurationKeys.VERIFICATION_ENCODING);
		if (o != null) {
			controller.setEnableEncodingVerification((Boolean) o);
		}
		else {
			controller.setEnableEncodingVerification(false);
		}

		o = config
				.getConfigParameter(ConfigurationKeys.MODE_STATISTICAL_OUTPUT);
		if (o != null) {
			controller.setEnableStatsOutput((Boolean) o);
		}
		else {
			controller.setEnableStatsOutput(false);
		}

		o = config.getConfigParameter(ConfigurationKeys.LOGGING_PATH_DEBUG);
		if (o != null) {
			controller.setEnableDebugOutput(true);
			this.debugOutputField.setText((String) o);
		}
		else {
			controller.setEnableDebugOutput(false);
			this.debugOutputField.setText("");
		}
	}