org.knime.core.node.workflow
Class CopyWorkflowPersistor

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

 class CopyWorkflowPersistor
extends Object
implements WorkflowPersistor

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
CopyWorkflowPersistor(WorkflowManager original, HashMap<Integer,ContainerTable> tableRep, boolean preserveDeletableFlags)
           
 
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

CopyWorkflowPersistor

CopyWorkflowPersistor(WorkflowManager original,
                      HashMap<Integer,ContainerTable> tableRep,
                      boolean preserveDeletableFlags)
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

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.

getInPortTemplates

public WorkflowPersistor.WorkflowPortTemplate[] getInPortTemplates()

Specified by:
getInPortTemplates 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.

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.

getOutPortTemplates

public WorkflowPersistor.WorkflowPortTemplate[] getOutPortTemplates()

Specified by:
getOutPortTemplates in interface WorkflowPersistor

getMetaPersistor

public NodeContainerMetaPersistor getMetaPersistor()

Specified by:
getMetaPersistor in interface NodeContainerPersistor

getLoadVersion

public String getLoadVersion()

Specified by:
getLoadVersion in interface WorkflowPersistor

getNodeLoaderMap

public Map<Integer,NodeContainerPersistor> getNodeLoaderMap()

Specified by:
getNodeLoaderMap in interface WorkflowPersistor

getNodeContainer

public NodeContainer getNodeContainer(WorkflowManager parent,
                                      NodeID id)

Specified by:
getNodeContainer in interface NodeContainerPersistor

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

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.

preLoadNodeContainer

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

Specified by:
preLoadNodeContainer in interface NodeContainerPersistor

mustWarnOnDataLoadError

public boolean mustWarnOnDataLoadError()

Specified by:
mustWarnOnDataLoadError in interface WorkflowPersistor
Returns:
the shouldFailOnLoadDataError


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.