|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.rules.RuleEngineSettings
public class RuleEngineSettings
This class contains all settings for the business rule node.
Field Summary | |
---|---|
(package private) static String |
CFG_DEFAULT_LABEL
|
Constructor Summary | |
---|---|
RuleEngineSettings()
|
Method Summary | |
---|---|
void |
addRule(String rule)
Adds a rule. |
void |
clearRules()
Removes all rules. |
String |
getDefaultLabel()
Returns the label that should be used if no rule matches. |
String |
getNewColName()
Returns the name of the new column containing the matching rule's outcome. |
void |
loadSettings(NodeSettingsRO settings)
Loads the settings from the settings object. |
void |
loadSettingsForDialog(NodeSettingsRO settings)
Loads the settings from the settings object for use in the dialog, i.e. |
Iterable<String> |
rules()
Returns an iterable over all rules. |
void |
saveSettings(NodeSettingsWO settings)
Saves the setting into the node settings object. |
void |
setDefaultLabel(String defaultLabel)
Sets the label that should be used if no rule matches. |
void |
setNewcolName(String newcolName)
Sets the name of the new column containing the matching rule's outcome. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String CFG_DEFAULT_LABEL
Constructor Detail |
---|
public RuleEngineSettings()
Method Detail |
---|
public void setNewcolName(String newcolName)
newcolName
- the column's namepublic void setDefaultLabel(String defaultLabel)
defaultLabel
- the default labelpublic String getNewColName()
public String getDefaultLabel()
public void addRule(String rule)
rule
- the rule stringpublic void clearRules()
public Iterable<String> rules()
public void loadSettings(NodeSettingsRO settings) throws InvalidSettingsException
settings
- a node settings object
InvalidSettingsException
- if some settings are missingpublic void loadSettingsForDialog(NodeSettingsRO settings)
settings
- a node settings objectpublic void saveSettings(NodeSettingsWO settings)
settings
- a node settings object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |