org.knime.core.node.workflow
Class CopySingleNodeContainerPersistor

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

final class CopySingleNodeContainerPersistor
extends Object
implements SingleNodeContainerPersistor

Author:
wiswedel, University of Konstanz

Field Summary
 
Fields inherited from interface org.knime.core.node.workflow.SingleNodeContainerPersistor
KEY_FACTORY_NAME, SETTINGS_FILE_NAME
 
Constructor Summary
CopySingleNodeContainerPersistor(SingleNodeContainer m_original, boolean preserveDeletableFlag)
           
 
Method Summary
 List<FlowObject> getFlowObjects()
          
 NodeContainerMetaPersistor getMetaPersistor()
          
 Node getNode()
          
 NodeContainer getNodeContainer(WorkflowManager parent, NodeID id)
          
 SingleNodeContainer.SingleNodeContainerSettings getSNCSettings()
          
 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 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

CopySingleNodeContainerPersistor

public CopySingleNodeContainerPersistor(SingleNodeContainer m_original,
                                        boolean preserveDeletableFlag)
Method Detail

getNode

public Node getNode()

Specified by:
getNode in interface SingleNodeContainerPersistor

getFlowObjects

public List<FlowObject> getFlowObjects()

Specified by:
getFlowObjects in interface SingleNodeContainerPersistor

getMetaPersistor

public NodeContainerMetaPersistor getMetaPersistor()

Specified by:
getMetaPersistor in interface NodeContainerPersistor

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.

getSNCSettings

public SingleNodeContainer.SingleNodeContainerSettings getSNCSettings()

Specified by:
getSNCSettings in interface SingleNodeContainerPersistor

preLoadNodeContainer

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

Specified by:
preLoadNodeContainer in interface NodeContainerPersistor


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.