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, ConnectionUIInformation 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)  ConnectionUIInformation getUiInfo()
           
 int hashCode()
          
(package private)  boolean isDeletable()
           
(package private)  void setDeletable(boolean isDeletable)
           
(package private)  void setDestPort(int destPort)
           
(package private)  void setDestSuffix(int destSuffix)
           
(package private)  void setSourcePort(int sourcePort)
           
(package private)  void setSourceSuffix(int sourceSuffix)
           
 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,
                                              ConnectionUIInformation 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

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

setDestPort

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

setDestSuffix

void setDestSuffix(int destSuffix)
Parameters:
destSuffix - the destSuffix to set

setSourcePort

void setSourcePort(int sourcePort)
Parameters:
sourcePort - the sourcePort to set

setSourceSuffix

void setSourceSuffix(int sourceSuffix)
Parameters:
sourceSuffix - the sourceSuffix to set

getUiInfo

ConnectionUIInformation 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 - 2012. 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.