|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.CopyNodePersistor
public class CopyNodePersistor
A persistor cloning a node's settings. It does not retain port objects or node internals. Used by copy&paste and undo.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.NodePersistor |
---|
NodePersistor.LoadNodeModelSettingsFailPolicy |
Field Summary |
---|
Fields inherited from interface org.knime.core.node.NodePersistor |
---|
CFG_DATA_FILE, CFG_DATA_FILE_DIR, CFG_HAS_SPEC_FILE, CFG_ISCONFIGURED, CFG_ISEXECUTED, CFG_MEMORY_POLICY, CFG_MODEL_FILES, CFG_NAME, CFG_NODE_MESSAGE, CFG_OUTPUT_PREFIX, CFG_SPEC_FILES, DATA_FILE_DIR, DATA_FILE_PREFIX, INTERN_FILE_DIR, MODEL_FILE_PREFIX, SETTINGS_FILE_NAME |
Constructor Summary | |
---|---|
CopyNodePersistor(Node original)
Create a new persistor. |
Method Summary | |
---|---|
BufferedDataTable[] |
getInternalHeldTables()
|
NodePersistor.LoadNodeModelSettingsFailPolicy |
getModelSettingsFailPolicy()
|
ReferencedFile |
getNodeInternDirectory()
|
PortObject |
getPortObject(int outportIndex)
|
PortObjectSpec |
getPortObjectSpec(int outportIndex)
|
String |
getPortObjectSummary(int outportIndex)
|
NodeSettingsRO |
getSettings()
|
String |
getWarningMessage()
|
boolean |
hasContent()
|
boolean |
isConfigured()
|
boolean |
isDirtyAfterLoad()
Whether this node should be marked as dirty after load. |
boolean |
isExecuted()
|
void |
loadInto(Node node)
Apply the settings to the new node. |
boolean |
mustWarnOnDataLoadError()
|
boolean |
needsResetAfterLoad()
|
void |
setDirtyAfterLoad()
Sets the dirty flag on this node. |
void |
setNeedsResetAfterLoad()
Indicate an error and that this node should better be reset after load. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
CopyNodePersistor(Node original)
original
- The node to copy.Method Detail |
---|
public void loadInto(Node node)
node
- the node just created.public NodePersistor.LoadNodeModelSettingsFailPolicy getModelSettingsFailPolicy()
getModelSettingsFailPolicy
in interface NodePersistor
public NodeSettingsRO getSettings()
getSettings
in interface NodePersistor
public boolean isConfigured()
isConfigured
in interface NodePersistor
public boolean isDirtyAfterLoad()
NodePersistor.setDirtyAfterLoad()
has been set to true or
NodeContentPersistor.needsResetAfterLoad()
returns true.
isDirtyAfterLoad
in interface NodePersistor
public boolean isExecuted()
isExecuted
in interface NodePersistor
public void setDirtyAfterLoad()
NodeContentPersistor.setNeedsResetAfterLoad()
is called.
setDirtyAfterLoad
in interface NodePersistor
public BufferedDataTable[] getInternalHeldTables()
getInternalHeldTables
in interface NodeContentPersistor
public ReferencedFile getNodeInternDirectory()
getNodeInternDirectory
in interface NodeContentPersistor
public PortObject getPortObject(int outportIndex)
getPortObject
in interface NodeContentPersistor
public PortObjectSpec getPortObjectSpec(int outportIndex)
getPortObjectSpec
in interface NodeContentPersistor
public String getPortObjectSummary(int outportIndex)
getPortObjectSummary
in interface NodeContentPersistor
public String getWarningMessage()
getWarningMessage
in interface NodeContentPersistor
public boolean hasContent()
hasContent
in interface NodeContentPersistor
public boolean mustWarnOnDataLoadError()
mustWarnOnDataLoadError
in interface NodeContentPersistor
public boolean needsResetAfterLoad()
needsResetAfterLoad
in interface NodeContentPersistor
public void setNeedsResetAfterLoad()
setNeedsResetAfterLoad
in interface NodeContentPersistor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |