org.knime.core.node.workflow
Class ObsoleteMetaNodeWorkflowPersistorVersion1xx

java.lang.Object
  extended by org.knime.core.node.workflow.WorkflowPersistorVersion1xx
      extended by org.knime.core.node.workflow.ObsoleteMetaNodeWorkflowPersistorVersion1xx
All Implemented Interfaces:
NodeContainerPersistor, WorkflowPersistor

public class ObsoleteMetaNodeWorkflowPersistorVersion1xx
extends WorkflowPersistorVersion1xx

Author:
wiswedel, University of Konstanz

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.node.workflow.WorkflowPersistor
WorkflowPersistor.ConnectionContainerTemplate, WorkflowPersistor.LoadResult, WorkflowPersistor.LoadResultEntry, WorkflowPersistor.WorkflowLoadResult, WorkflowPersistor.WorkflowPortTemplate
 
Field Summary
static List<String> OLD_META_NODES
           
 
Fields inherited from interface org.knime.core.node.workflow.WorkflowPersistor
KEY_CONNECTIONS, KEY_ID, KEY_NODES, KEY_UI_INFORMATION, SAVED_WITH_DATA_FILE, WORKFLOW_FILE
 
Constructor Summary
ObsoleteMetaNodeWorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> globalRep, String versionString)
           
 
Method Summary
protected  SingleNodeContainerPersistorVersion1xx createSingleNodeContainerPersistor()
          
protected  WorkflowPersistor.ConnectionContainerTemplate loadConnection(NodeSettingsRO settings)
          
protected  NodeSettingsRO loadInPortsSetting(NodeSettingsRO settings)
          
protected  NodeSettingsRO loadInPortsSettingsEnum(NodeSettingsRO settings)
          
protected  WorkflowPersistor.WorkflowPortTemplate loadInPortTemplate(NodeSettingsRO settings)
          
protected  NodeSettingsRO loadOutPortsSetting(NodeSettingsRO settings)
          
protected  NodeSettingsRO loadOutPortsSettingsEnum(NodeSettingsRO settings)
          
protected  WorkflowPersistor.WorkflowPortTemplate loadOutPortTemplate(NodeSettingsRO settings)
          
protected  NodeSettingsRO loadSettingsForConnections(NodeSettingsRO set)
          
protected  String loadWorkflowName(NodeSettingsRO set)
          
 void preLoadNodeContainer(ReferencedFile nodeFileRef, NodeSettingsRO parentSettings, WorkflowPersistor.LoadResult result)
          
protected  NodeSettingsRO readParentSettings()
          
protected  boolean shouldSkipThisNode(NodeSettingsRO settings)
          This is overridden by the meta node loader (1.x.x) and returns true for the "special" nodes.
 
Methods inherited from class org.knime.core.node.workflow.WorkflowPersistorVersion1xx
canReadVersion, createNodeContainerMetaPersistor, createWorkflowPersistor, fixUIInfoClassName, getConnectionSet, getGlobalTableRepository, getInPortsBarUIInfo, getInPortTemplates, getLoadVersion, getLogger, getMetaPersistor, getName, getNodeContainer, getNodeLoaderMap, getOutPortsBarUIInfo, getOutPortTemplates, getVersionString, getWorkflowDir, getWorkflowVariables, isDirtyAfterLoad, loadConnectionDestID, loadConnectionDestPort, loadIfMustWarnOnDataLoadError, loadInPortsBarUIInfo, loadInPortsBarUIInfoClassName, loadIsMetaNode, loadNodeContainer, loadNodeFile, loadNodeIDSuffix, loadOutPortsBarUIInfo, loadOutPortsBarUIInfoClassName, loadSettingsForNodes, loadUIInfoClassName, loadUIInfoInstance, loadUIInfoSettings, loadVersion, loadWorkflowVariables, mustComplainIfStateDoesNotMatch, mustWarnOnDataLoadError, needsResetAfterLoad, setDirtyAfterLoad, setNeedsResetAfterLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OLD_META_NODES

public static final List<String> OLD_META_NODES
Constructor Detail

ObsoleteMetaNodeWorkflowPersistorVersion1xx

public ObsoleteMetaNodeWorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> globalRep,
                                                   String versionString)
Method Detail

preLoadNodeContainer

public void preLoadNodeContainer(ReferencedFile nodeFileRef,
                                 NodeSettingsRO parentSettings,
                                 WorkflowPersistor.LoadResult result)
                          throws IOException,
                                 InvalidSettingsException

Specified by:
preLoadNodeContainer in interface NodeContainerPersistor
Overrides:
preLoadNodeContainer in class WorkflowPersistorVersion1xx
Throws:
IOException
InvalidSettingsException

shouldSkipThisNode

protected boolean shouldSkipThisNode(NodeSettingsRO settings)
This is overridden by the meta node loader (1.x.x) and returns true for the "special" nodes.

Overrides:
shouldSkipThisNode in class WorkflowPersistorVersion1xx
Parameters:
settings - node sub-element
Returns:
true if to skip (though in 99.9% false)

createSingleNodeContainerPersistor

protected SingleNodeContainerPersistorVersion1xx createSingleNodeContainerPersistor()

Overrides:
createSingleNodeContainerPersistor in class WorkflowPersistorVersion1xx

loadWorkflowName

protected String loadWorkflowName(NodeSettingsRO set)
                           throws InvalidSettingsException

Overrides:
loadWorkflowName in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

readParentSettings

protected NodeSettingsRO readParentSettings()
                                     throws IOException

Overrides:
readParentSettings in class WorkflowPersistorVersion1xx
Throws:
IOException

loadOutPortsSetting

protected NodeSettingsRO loadOutPortsSetting(NodeSettingsRO settings)
                                      throws InvalidSettingsException

Overrides:
loadOutPortsSetting in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadOutPortsSettingsEnum

protected NodeSettingsRO loadOutPortsSettingsEnum(NodeSettingsRO settings)
                                           throws InvalidSettingsException

Overrides:
loadOutPortsSettingsEnum in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadOutPortTemplate

protected WorkflowPersistor.WorkflowPortTemplate loadOutPortTemplate(NodeSettingsRO settings)
                                                              throws InvalidSettingsException

Overrides:
loadOutPortTemplate in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadInPortsSetting

protected NodeSettingsRO loadInPortsSetting(NodeSettingsRO settings)
                                     throws InvalidSettingsException

Overrides:
loadInPortsSetting in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadInPortsSettingsEnum

protected NodeSettingsRO loadInPortsSettingsEnum(NodeSettingsRO settings)
                                          throws InvalidSettingsException

Overrides:
loadInPortsSettingsEnum in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadInPortTemplate

protected WorkflowPersistor.WorkflowPortTemplate loadInPortTemplate(NodeSettingsRO settings)
                                                             throws InvalidSettingsException

Overrides:
loadInPortTemplate in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadSettingsForConnections

protected NodeSettingsRO loadSettingsForConnections(NodeSettingsRO set)
                                             throws InvalidSettingsException

Overrides:
loadSettingsForConnections in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException

loadConnection

protected WorkflowPersistor.ConnectionContainerTemplate loadConnection(NodeSettingsRO settings)
                                                                throws InvalidSettingsException

Overrides:
loadConnection in class WorkflowPersistorVersion1xx
Throws:
InvalidSettingsException


Copyright, 2003 - 2010. 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.