use of org.knime.core.node.NodeSettingsWO in project knime-core by knime.
the class TokenizerSettings method saveDelimitersToConfiguration.
/*
* saves the settings of all delimiters defined by adding a configuration
* object for each delimiter to the passed config.
*/
private void saveDelimitersToConfiguration(final NodeSettingsWO cfg) {
if (cfg == null) {
throw new NullPointerException("Can't save 'delimiters' " + "to null config!");
}
for (int d = 0; d < m_delimPatterns.size(); d++) {
NodeSettingsWO delimConf = cfg.addNodeSettings(CFGKEY_DELIMCFG + d);
Delimiter delim = m_delimPatterns.get(d);
delim.saveToConfig(delimConf);
}
}
use of org.knime.core.node.NodeSettingsWO in project knime-core by knime.
the class TokenizerSettings method saveCommentsToConfiguration.
/*
* saves the settings of all Comments defined by adding a configuration
* object for each comment to the passed config.
*/
private void saveCommentsToConfiguration(final NodeSettingsWO cfg) {
if (cfg == null) {
throw new NullPointerException("Can't save 'comments' " + "to null config!");
}
for (int c = 0; c < m_commentPatterns.size(); c++) {
NodeSettingsWO commentConf = cfg.addNodeSettings(CFGKEY_COMMNTCFG + c);
Comment comment = m_commentPatterns.get(c);
comment.saveToConfig(commentConf);
}
}
use of org.knime.core.node.NodeSettingsWO in project knime-core by knime.
the class TokenizerSettings method saveQuotesToConfiguration.
/*
* saves the settings of all quotes defined by adding a configuration object
* for each quote to the passed config.
*/
private void saveQuotesToConfiguration(final NodeSettingsWO cfg) {
if (cfg == null) {
throw new NullPointerException("Can't save 'quotes' " + "to null config!");
}
for (int q = 0; q < m_quotePatterns.size(); q++) {
NodeSettingsWO quoteConf = cfg.addNodeSettings(CFGKEY_QUOTECFG + q);
Quote quote = m_quotePatterns.get(q);
quote.saveToConfig(quoteConf);
}
}
use of org.knime.core.node.NodeSettingsWO in project knime-core by knime.
the class FileNodeContainerMetaPersistor method saveNodeExecutionJobManager.
protected static void saveNodeExecutionJobManager(final NodeSettingsWO settings, final NodeContainer nc) {
NodeExecutionJobManager jobManager = nc.getJobManager();
if (jobManager != null) {
NodeSettingsWO s = settings.addNodeSettings(CFG_JOB_MANAGER_CONFIG);
NodeExecutionJobManagerPool.saveJobManager(jobManager, s);
}
}
use of org.knime.core.node.NodeSettingsWO in project knime-core by knime.
the class FileNodeContainerMetaPersistor method saveNodeAnnotation.
protected static void saveNodeAnnotation(final NodeSettingsWO settings, final NodeContainer nc) {
NodeAnnotation annotation = nc.getNodeAnnotation();
if (annotation != null && !annotation.getData().isDefault()) {
NodeSettingsWO anno = settings.addNodeSettings("nodeAnnotation");
annotation.save(anno);
}
}
Aggregations