use of org.knime.core.node.config.Config in project knime-core by knime.
the class SettingsModelFilterString method loadSettingsForModel.
/**
* {@inheritDoc}
*/
@Override
protected void loadSettingsForModel(final NodeSettingsRO settings) throws InvalidSettingsException {
try {
// no default value, throw an exception instead
Config lists = settings.getConfig(m_configName);
String[] incl = lists.getStringArray(CFGKEY_INCL);
String[] excl = lists.getStringArray(CFGKEY_EXCL);
setIncludeList(incl);
setExcludeList(excl);
boolean keepAll = lists.getBoolean(CFGKEY_KEEPALL, false);
setKeepAllSelected(keepAll);
} catch (IllegalArgumentException iae) {
throw new InvalidSettingsException(iae.getMessage());
}
}
Aggregations