org.knime.core.node.workflow
Class WorkflowPersistor.ConnectionContainerTemplate

java.lang.Object
  extended by org.knime.core.node.workflow.WorkflowPersistor.ConnectionContainerTemplate
Enclosing interface:
WorkflowPersistor

public static class WorkflowPersistor.ConnectionContainerTemplate
extends Object

Helper class representing a connection.


Constructor Summary
WorkflowPersistor.ConnectionContainerTemplate(ConnectionContainer original, boolean preserveDeletableFlag)
          Copies an existing connection (used for copy&paste).
WorkflowPersistor.ConnectionContainerTemplate(int source, int sourcePort, int dest, int destPort, boolean isDeletable, UIInformation uiInfo)
          Creates new template connection.
 
Method Summary
 boolean equals(Object obj)
          
(package private)  int getDestPort()
           
(package private)  int getDestSuffix()
           
(package private)  int getSourcePort()
           
(package private)  int getSourceSuffix()
           
(package private)  UIInformation getUiInfo()
           
 int hashCode()
          
(package private)  boolean isDeletable()
           
 void setDeletable(boolean isDeletable)
           
 void setDestPort(int destPort)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowPersistor.ConnectionContainerTemplate

WorkflowPersistor.ConnectionContainerTemplate(int source,
                                              int sourcePort,
                                              int dest,
                                              int destPort,
                                              boolean isDeletable,
                                              UIInformation uiInfo)
Creates new template connection.

Parameters:
source - ID Suffix of source node
sourcePort - Source port
dest - ID Suffix of destination node
destPort - Destination port
isDeletable - whether connection is deletable
uiInfo - Corresponding UI info, maybe null

WorkflowPersistor.ConnectionContainerTemplate

WorkflowPersistor.ConnectionContainerTemplate(ConnectionContainer original,
                                              boolean preserveDeletableFlag)
Copies an existing connection (used for copy&paste).

Parameters:
original - To copy.
preserveDeletableFlag - Whether to retain the deletable status of the original connection.
Method Detail

getSourceSuffix

int getSourceSuffix()
Returns:
the source identifier

getSourcePort

int getSourcePort()
Returns:
the source port

getDestSuffix

int getDestSuffix()
Returns:
the destination identifier.

getDestPort

int getDestPort()
Returns:
the destination port

isDeletable

boolean isDeletable()
Returns:
the isDeletable

setDeletable

public void setDeletable(boolean isDeletable)
Parameters:
isDeletable - the isDeletable to set

setDestPort

public void setDestPort(int destPort)
Parameters:
destPort - the destPort to set

getUiInfo

UIInformation getUiInfo()
Returns:
the uiInfo

toString

public String toString()

Overrides:
toString in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


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.