org.knime.core.node.workflow
Class NodePortAdaptor
java.lang.Object
org.knime.core.node.workflow.NodePortAdaptor
- All Implemented Interfaces:
- NodePort
- Direct Known Subclasses:
- NodeContainerOutPort, NodeInPort, NodeOutPortWrapper
public class NodePortAdaptor
- extends Object
- implements NodePort
- Author:
- berthold, University of Konstanz
Constructor Summary |
NodePortAdaptor(int portID,
PortType pType)
Creates a new node port with an ID assigned from the underlying node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodePortAdaptor
public NodePortAdaptor(int portID,
PortType pType)
- Creates a new node port with an ID assigned from the underlying node. The
default port name is "Port [portID]" and can be changed via
#setPortName(String)
.
- Parameters:
portID
- the port's id, greater or equal zero- See Also:
setPortName(String)
getPortIndex
public final int getPortIndex()
- Specified by:
getPortIndex
in interface NodePort
- Returns:
- The port id.
getPortType
public final PortType getPortType()
- Specified by:
getPortType
in interface NodePort
- Returns:
- The port type.
getPortName
public final String getPortName()
- Specified by:
getPortName
in interface NodePort
- Returns:
- The port name.
setPortName
public final void setPortName(String portName)
- Sets a new name for this port. If null or an empty string is passed, the
default name will be generated: "Port [" + portID + "]".
- Specified by:
setPortName
in interface NodePort
- Parameters:
portName
- The new name for this port. If null is passed, the
default name will be generated.
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.