org.knime.core.node.workflow
Class SingleNodeContainerPersistorVersion200
java.lang.Object
org.knime.core.node.workflow.SingleNodeContainerPersistorVersion1xx
org.knime.core.node.workflow.SingleNodeContainerPersistorVersion200
- All Implemented Interfaces:
- NodeContainerPersistor, SingleNodeContainerPersistor
public class SingleNodeContainerPersistorVersion200
- extends SingleNodeContainerPersistorVersion1xx
- Author:
- wiswedel, University of Konstanz
|
Method Summary |
protected NodePersistorVersion200 |
createNodePersistor()
|
protected List<FlowObject> |
loadFlowObjects(NodeSettingsRO settings)
Load from variables. |
protected String |
loadNodeFactoryClassName(NodeSettingsRO parentSettings,
NodeSettingsRO settings)
Load factory name. |
protected String |
loadNodeFile(NodeSettingsRO settings)
Load Name of file containing node settings. |
protected SingleNodeContainer.SingleNodeContainerSettings |
loadSNCSettings(NodeSettingsRO settings,
NodePersistorVersion1xx nodePersistor)
Load configuration of node. |
protected static String |
save(SingleNodeContainer snc,
ReferencedFile nodeDirRef,
ExecutionMonitor exec,
boolean isSaveData)
|
protected static void |
saveFlowObjectStack(NodeSettingsWO settings,
SingleNodeContainer nc)
|
protected static void |
saveNodeFactoryClassName(NodeSettingsWO settings,
SingleNodeContainer nc)
|
protected static ReferencedFile |
saveNodeFileName(SingleNodeContainer snc,
NodeSettingsWO settings,
ReferencedFile nodeDirectoryRef)
|
protected static void |
saveSNCSettings(NodeSettingsWO settings,
SingleNodeContainer snc)
|
protected boolean |
shouldFixModelPortOrder()
|
| Methods inherited from class org.knime.core.node.workflow.SingleNodeContainerPersistorVersion1xx |
getFlowObjects, getLoadHelper, getLoadVersion, getLogger, getMetaPersistor, getModelSettingsFailPolicy, getNode, getNodeContainer, getSNCSettings, getWorkflowManagerPersistor, isDirtyAfterLoad, loadNodeContainer, loadNodeFactory, mustComplainIfStateDoesNotMatch, mustWarnOnDataLoadError, needsResetAfterLoad, preLoadNodeContainer, setDirtyAfterLoad, setNeedsResetAfterLoad, translateToFailPolicy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NODE_FILE
public static final String NODE_FILE
- See Also:
- Constant Field Values
SingleNodeContainerPersistorVersion200
public SingleNodeContainerPersistorVersion200(WorkflowPersistorVersion1xx workflowPersistor,
ReferencedFile nodeSettingsFile,
WorkflowLoadHelper loadHelper,
WorkflowPersistorVersion200.LoadVersion version)
- Load persistor.
- Parameters:
workflowPersistor - nodeSettingsFile - version -
createNodePersistor
protected NodePersistorVersion200 createNodePersistor()
-
- Overrides:
createNodePersistor in class SingleNodeContainerPersistorVersion1xx
loadNodeFactoryClassName
protected String loadNodeFactoryClassName(NodeSettingsRO parentSettings,
NodeSettingsRO settings)
throws InvalidSettingsException
- Load factory name.
- Overrides:
loadNodeFactoryClassName in class SingleNodeContainerPersistorVersion1xx
- Parameters:
parentSettings - settings of outer workflow (old style workflows
have it in there)settings - settings of this node, ignored in this implementation
- Returns:
- Name of factory
- Throws:
InvalidSettingsException - If that fails for any reason.
loadNodeFile
protected String loadNodeFile(NodeSettingsRO settings)
throws InvalidSettingsException
- Description copied from class:
SingleNodeContainerPersistorVersion1xx
- Load Name of file containing node settings.
- Overrides:
loadNodeFile in class SingleNodeContainerPersistorVersion1xx
- Parameters:
settings - to load from, used in sub-classes, ignored here.
- Returns:
- "settings.xml"
- Throws:
InvalidSettingsException - If that fails for any reason.
loadSNCSettings
protected SingleNodeContainer.SingleNodeContainerSettings loadSNCSettings(NodeSettingsRO settings,
NodePersistorVersion1xx nodePersistor)
throws InvalidSettingsException
- Load configuration of node.
- Overrides:
loadSNCSettings in class SingleNodeContainerPersistorVersion1xx
- Parameters:
settings - to load from (used in sub-classes)nodePersistor - persistor to allow this implementation to load
old-style
- Returns:
- node config
- Throws:
InvalidSettingsException - if that fails for any reason.
loadFlowObjects
protected List<FlowObject> loadFlowObjects(NodeSettingsRO settings)
throws InvalidSettingsException
- Load from variables.
- Overrides:
loadFlowObjects in class SingleNodeContainerPersistorVersion1xx
- Parameters:
settings - to load from, ignored in this implementation
(flow variables added in later versions)
- Returns:
- an empty list.
- Throws:
InvalidSettingsException - if that fails for any reason.
shouldFixModelPortOrder
protected boolean shouldFixModelPortOrder()
-
- Overrides:
shouldFixModelPortOrder in class SingleNodeContainerPersistorVersion1xx
save
protected static String save(SingleNodeContainer snc,
ReferencedFile nodeDirRef,
ExecutionMonitor exec,
boolean isSaveData)
throws CanceledExecutionException,
IOException
- Throws:
CanceledExecutionException
IOException
saveNodeFactoryClassName
protected static void saveNodeFactoryClassName(NodeSettingsWO settings,
SingleNodeContainer nc)
saveNodeFileName
protected static ReferencedFile saveNodeFileName(SingleNodeContainer snc,
NodeSettingsWO settings,
ReferencedFile nodeDirectoryRef)
saveSNCSettings
protected static void saveSNCSettings(NodeSettingsWO settings,
SingleNodeContainer snc)
saveFlowObjectStack
protected static void saveFlowObjectStack(NodeSettingsWO settings,
SingleNodeContainer nc)
Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.