|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.workflow.WorkflowPersistorVersion1xx
class WorkflowPersistorVersion1xx
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 | |
---|---|
WorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> tableRep,
String versionString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
WorkflowPersistorVersion1xx(HashMap<Integer,ContainerTable> tableRep, String versionString)
Method Detail |
---|
static boolean canReadVersion(String versionString)
protected final String getVersionString()
protected NodeLogger getLogger()
public String getLoadVersion()
getLoadVersion
in interface WorkflowPersistor
protected ReferencedFile getWorkflowDir()
public Set<WorkflowPersistor.ConnectionContainerTemplate> getConnectionSet()
getConnectionSet
in interface WorkflowPersistor
public Map<Integer,NodeContainerPersistor> getNodeLoaderMap()
getNodeLoaderMap
in interface WorkflowPersistor
public boolean mustWarnOnDataLoadError()
mustWarnOnDataLoadError
in interface WorkflowPersistor
public NodeContainerMetaPersistor getMetaPersistor()
getMetaPersistor
in interface NodeContainerPersistor
public HashMap<Integer,ContainerTable> getGlobalTableRepository()
getGlobalTableRepository
in interface WorkflowPersistor
public NodeContainer getNodeContainer(WorkflowManager parent, NodeID id)
getNodeContainer
in interface NodeContainerPersistor
public String getName()
getName
in interface WorkflowPersistor
public List<FlowVariable> getWorkflowVariables()
getWorkflowVariables
in interface WorkflowPersistor
public WorkflowPersistor.WorkflowPortTemplate[] getInPortTemplates()
getInPortTemplates
in interface WorkflowPersistor
public WorkflowPersistor.WorkflowPortTemplate[] getOutPortTemplates()
getOutPortTemplates
in interface WorkflowPersistor
public UIInformation getInPortsBarUIInfo()
getInPortsBarUIInfo
in interface WorkflowPersistor
public UIInformation getOutPortsBarUIInfo()
getOutPortsBarUIInfo
in interface WorkflowPersistor
public boolean needsResetAfterLoad()
needsResetAfterLoad
in interface NodeContainerPersistor
public void setNeedsResetAfterLoad()
public boolean isDirtyAfterLoad()
isDirtyAfterLoad
in interface NodeContainerPersistor
public boolean mustComplainIfStateDoesNotMatch()
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.
mustComplainIfStateDoesNotMatch
in interface NodeContainerPersistor
protected void setDirtyAfterLoad()
public void preLoadNodeContainer(ReferencedFile nodeFileRef, NodeSettingsRO parentSettings, WorkflowPersistor.LoadResult loadResult) throws InvalidSettingsException, IOException
preLoadNodeContainer
in interface NodeContainerPersistor
InvalidSettingsException
IOException
public void loadNodeContainer(Map<Integer,BufferedDataTable> tblRep, ExecutionMonitor exec, WorkflowPersistor.LoadResult loadResult) throws CanceledExecutionException, IOException
loadNodeContainer
in interface NodeContainerPersistor
CanceledExecutionException
IOException
protected NodeSettingsRO readParentSettings() throws IOException
IOException
protected boolean shouldSkipThisNode(NodeSettingsRO settings)
settings
- node sub-element
protected String loadVersion(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected int loadNodeIDSuffix(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected String loadUIInfoClassName(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected String fixUIInfoClassName(String name)
protected UIInformation loadUIInfoInstance(String className)
UIInformaion
from given settings, describing
whatever additional information was stored (graphical layout?).
className
- The name of the class to be loaded.
UIInformation
object or nullprotected void loadUIInfoSettings(UIInformation uiInfo, NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected String loadInPortsBarUIInfoClassName(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected void loadInPortsBarUIInfo(UIInformation uiInfo, NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected String loadOutPortsBarUIInfoClassName(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected void loadOutPortsBarUIInfo(UIInformation uiInfo, NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected ReferencedFile loadNodeFile(NodeSettingsRO settings, ReferencedFile workflowDirRef) throws InvalidSettingsException
InvalidSettingsException
protected boolean loadIsMetaNode(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadSettingsForConnections(NodeSettingsRO set) throws InvalidSettingsException
InvalidSettingsException
protected WorkflowPersistor.ConnectionContainerTemplate loadConnection(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected int loadConnectionDestID(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected int loadConnectionDestPort(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadSettingsForNodes(NodeSettingsRO set) throws InvalidSettingsException
InvalidSettingsException
protected String loadWorkflowName(NodeSettingsRO set) throws InvalidSettingsException
InvalidSettingsException
protected List<FlowVariable> loadWorkflowVariables(NodeSettingsRO settings) throws InvalidSettingsException
settings
- To load from.
InvalidSettingsException
- If any settings-related error occurs.protected NodeSettingsRO loadInPortsSetting(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadInPortsSettingsEnum(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected WorkflowPersistor.WorkflowPortTemplate loadInPortTemplate(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadOutPortsSetting(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected NodeSettingsRO loadOutPortsSettingsEnum(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected WorkflowPersistor.WorkflowPortTemplate loadOutPortTemplate(NodeSettingsRO settings) throws InvalidSettingsException
InvalidSettingsException
protected boolean loadIfMustWarnOnDataLoadError(File workflowFile)
protected NodeContainerMetaPersistorVersion1xx createNodeContainerMetaPersistor(ReferencedFile baseDir)
protected SingleNodeContainerPersistorVersion1xx createSingleNodeContainerPersistor()
protected WorkflowPersistorVersion1xx createWorkflowPersistor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |