org.knime.core.node.workflow
Class InsertWorkflowPersistor

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

final class InsertWorkflowPersistor
extends Object
implements WorkflowPersistor

Persistor that is used when a workflow (a project) is loaded.

Author:
Bernd 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
 
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
InsertWorkflowPersistor(WorkflowPersistor wfmPersistor)
           
 
Method Summary
 Set<WorkflowPersistor.ConnectionContainerTemplate> getConnectionSet()
          
 HashMap<Integer,ContainerTable> getGlobalTableRepository()
          
 UIInformation getInPortsBarUIInfo()
          Get UI information for workflow input ports.
 WorkflowPersistor.WorkflowPortTemplate[] getInPortTemplates()
          
 String getLoadVersion()
          
 NodeContainerMetaPersistor getMetaPersistor()
          
 String getName()
          
 NodeContainer getNodeContainer(WorkflowManager parent, NodeID id)
          
 Map<Integer,NodeContainerPersistor> getNodeLoaderMap()
          
 UIInformation getOutPortsBarUIInfo()
          Get UI information for workflow output ports.
 WorkflowPersistor.WorkflowPortTemplate[] getOutPortTemplates()
          
 List<FlowVariable> getWorkflowVariables()
          Get the workflow variables associated with this meta node/workflow.
 boolean isDirtyAfterLoad()
          
 void loadNodeContainer(Map<Integer,BufferedDataTable> tblRep, ExecutionMonitor exec, WorkflowPersistor.LoadResult loadResult)
          
 boolean mustComplainIfStateDoesNotMatch()
          Does this persistor complain if its persisted state state does not match the state after loading (typically all non-executed nodes are configured after load).
 boolean mustWarnOnDataLoadError()
          
 boolean needsResetAfterLoad()
          
 void preLoadNodeContainer(ReferencedFile nodeFileRef, NodeSettingsRO parentSettings, WorkflowPersistor.LoadResult loadResult)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertWorkflowPersistor

InsertWorkflowPersistor(WorkflowPersistor wfmPersistor)
Method Detail

getConnectionSet

public Set<WorkflowPersistor.ConnectionContainerTemplate> getConnectionSet()

Specified by:
getConnectionSet in interface WorkflowPersistor

getGlobalTableRepository

public HashMap<Integer,ContainerTable> getGlobalTableRepository()

Specified by:
getGlobalTableRepository in interface WorkflowPersistor

getInPortTemplates

public WorkflowPersistor.WorkflowPortTemplate[] getInPortTemplates()

Specified by:
getInPortTemplates in interface WorkflowPersistor

getInPortsBarUIInfo

public UIInformation getInPortsBarUIInfo()
Get UI information for workflow input ports.

Specified by:
getInPortsBarUIInfo in interface WorkflowPersistor
Returns:
the ui info or null if not set.

getLoadVersion

public String getLoadVersion()

Specified by:
getLoadVersion in interface WorkflowPersistor

getName

public String getName()

Specified by:
getName in interface WorkflowPersistor

getWorkflowVariables

public List<FlowVariable> getWorkflowVariables()
Get the workflow variables associated with this meta node/workflow. This method must not return null (but possibly an empty list). The result may be unmodifiable.

Specified by:
getWorkflowVariables in interface WorkflowPersistor
Returns:
The workflow variables.

getNodeLoaderMap

public Map<Integer,NodeContainerPersistor> getNodeLoaderMap()

Specified by:
getNodeLoaderMap in interface WorkflowPersistor

getOutPortTemplates

public WorkflowPersistor.WorkflowPortTemplate[] getOutPortTemplates()

Specified by:
getOutPortTemplates in interface WorkflowPersistor

getOutPortsBarUIInfo

public UIInformation getOutPortsBarUIInfo()
Get UI information for workflow output ports.

Specified by:
getOutPortsBarUIInfo in interface WorkflowPersistor
Returns:
the ui info or null if not set.

mustWarnOnDataLoadError

public boolean mustWarnOnDataLoadError()

Specified by:
mustWarnOnDataLoadError in interface WorkflowPersistor
Returns:
the shouldFailOnLoadDataError

getMetaPersistor

public NodeContainerMetaPersistor getMetaPersistor()

Specified by:
getMetaPersistor in interface NodeContainerPersistor

getNodeContainer

public NodeContainer getNodeContainer(WorkflowManager parent,
                                      NodeID id)

Specified by:
getNodeContainer in interface NodeContainerPersistor

isDirtyAfterLoad

public boolean isDirtyAfterLoad()

Specified by:
isDirtyAfterLoad in interface NodeContainerPersistor

mustComplainIfStateDoesNotMatch

public boolean mustComplainIfStateDoesNotMatch()
Does this persistor complain if its persisted state state does not match the state after loading (typically all non-executed nodes are configured after load). This is true for all SingleNodeContainer and newer meta nodes, but it will be false for meta nodes, which are loaded from 1.x workflow.

Specified by:
mustComplainIfStateDoesNotMatch in interface NodeContainerPersistor
Returns:
Such a property.

loadNodeContainer

public void loadNodeContainer(Map<Integer,BufferedDataTable> tblRep,
                              ExecutionMonitor exec,
                              WorkflowPersistor.LoadResult loadResult)

Specified by:
loadNodeContainer in interface NodeContainerPersistor

needsResetAfterLoad

public boolean needsResetAfterLoad()

Specified by:
needsResetAfterLoad in interface NodeContainerPersistor

preLoadNodeContainer

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

Specified by:
preLoadNodeContainer in interface NodeContainerPersistor
Throws:
InvalidSettingsException
IOException


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.