use of org.knime.core.node.defaultnodesettings.SettingsModelString in project knime-core by knime.
the class CreateBitVectorNodeModel method createMSCSetMatchingModel.
/**
*@return the multi string column set matching model
*/
static SettingsModelString createMSCSetMatchingModel() {
final SettingsModelString m = new SettingsModelString("multiStringColumnSetMatching", SetMatching.MATCHING.getActionCommand());
m.setEnabled(false);
return m;
}
use of org.knime.core.node.defaultnodesettings.SettingsModelString in project knime-core by knime.
the class CreateBitVectorNodeModel method createMSCPattern.
/**
*@return the multi string pattern.
*/
static SettingsModelString createMSCPattern() {
final SettingsModelString m = new SettingsModelString("multiStringColumnPatter", null);
m.setEnabled(false);
return m;
}
use of org.knime.core.node.defaultnodesettings.SettingsModelString in project knime-core by knime.
the class CreateBitVectorNodeModel method createSingleStringColumnTypeModel.
/**
* @return the single string column type model.
*/
static SettingsModelString createSingleStringColumnTypeModel() {
final SettingsModelString model = new SettingsModelString("singleStringType", StringType.BIT.getActionCommand());
model.setEnabled(ColumnType.getDefault().equals(ColumnType.SINGLE_STRING));
return model;
}
use of org.knime.core.node.defaultnodesettings.SettingsModelString in project knime-core by knime.
the class CellReplacerNodeModel method validateSettings.
/**
* {@inheritDoc}
*/
@Override
protected void validateSettings(final NodeSettingsRO settings) throws InvalidSettingsException {
m_targetColModel.validateSettings(settings);
SettingsModelString clone = m_noMatchPolicyModel.createCloneWithValidatedValue(settings);
try {
NoMatchPolicy.valueOf(clone.getStringValue());
} catch (Exception e) {
throw new InvalidSettingsException("Invalid policy: " + clone.getStringValue());
}
m_dictInputColModel.validateSettings(settings);
m_dictOutputColModel.validateSettings(settings);
m_appendColumnModel.validateSettings(settings);
m_appendColumnNameModel.validateSettings(settings);
}
use of org.knime.core.node.defaultnodesettings.SettingsModelString in project knime-core by knime.
the class CellReplacerNodeModel method createAppendColumnNameModel.
/**
* @param appendColumnModel flag model (enable/disable)
* @return New settings model for append column name.
*/
static final SettingsModelString createAppendColumnNameModel(final SettingsModelBoolean appendColumnModel) {
final SettingsModelString result = new SettingsModelString("appendColumnName", "Replacement");
appendColumnModel.addChangeListener(new ChangeListener() {
/**
* {@inheritDoc}
*/
@Override
public void stateChanged(final ChangeEvent e) {
result.setEnabled(appendColumnModel.getBooleanValue());
}
});
result.setEnabled(appendColumnModel.getBooleanValue());
return result;
}
Aggregations