Search in sources :

Example 1 with KnimeNode

use of org.knime.node.v41.KnimeNode in project knime-core by knime.

the class NodeDescription41Proxy method adaptPortsDescription.

private static void adaptPortsDescription(final KnimeNode knimeNode, final Map<String, ExtendablePortGroup> extendablePortGrps) {
    final String nodeName = knimeNode.getName();
    final Ports ports = knimeNode.getPorts();
    // adapt input port descriptions
    adaptPortsDescription(nodeName, "input", extendablePortGrps, ports, ports.getDynInPortList(), Ports::getInPortList, Ports::addNewInPort, ExtendablePortGroup::definesInputPorts);
    // adapt output port descriptions
    adaptPortsDescription(nodeName, "output", extendablePortGrps, ports, ports.getDynOutPortList(), Ports::getOutPortList, Ports::addNewOutPort, ExtendablePortGroup::definesOutputPorts);
}
Also used : Ports(org.knime.node.v41.Ports) ExtendablePortGroup(org.knime.core.node.context.ports.ExtendablePortGroup)

Aggregations

ExtendablePortGroup (org.knime.core.node.context.ports.ExtendablePortGroup)1 Ports (org.knime.node.v41.Ports)1