public class CopyNodePersistor extends Object implements NodePersistor
NodePersistor.LoadNodeModelSettingsFailPolicy
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 and Description |
---|
CopyNodePersistor() |
Modifier and Type | Method and Description |
---|---|
IFileStoreHandler |
getFileStoreHandler() |
PortObject[] |
getInternalHeldPortObjects() |
ReferencedFile |
getNodeInternDirectory() |
PortObject |
getPortObject(int outportIndex) |
PortObjectSpec |
getPortObjectSpec(int outportIndex) |
String |
getPortObjectSummary(int outportIndex) |
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.
|
public void loadInto(Node node)
node
- the node just created.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 PortObject[] getInternalHeldPortObjects()
getInternalHeldPortObjects
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
public IFileStoreHandler getFileStoreHandler()
getFileStoreHandler
in interface NodeContentPersistor
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.