/** * Creates and adds a new output port with the provided properties. * * @see #removeOutputs() * @param portName - * the name of the port to be created. * @param portDepth - * the depth of the port to be created * @param granularDepth - * the granular depth of the port to be created * @param mimeTypes - * a List of String representations of the MIME type this port * will emit as outputs. */ protected void addOutput(String portName, int portDepth, int granularDepth) { outputPorts.add(edits.createActivityOutputPort( portName, portDepth, granularDepth)); }
/** * Create a new output port with the given MIME types * * @param portName * Name of the new port * @param portDepth * Depth of the new port * @param mimeTypes * Accepted mime types for this port */ private void addOutputWithMime(String portName, int portDepth, List<String> mimeTypes) { OutputPort outputPort = edits.createActivityOutputPort(portName, portDepth, portDepth); outputPorts.add(outputPort); addMimeTypes(outputPort, mimeTypes); }
/** * Creates and adds a new output port with the provided properties. * * @see #removeOutputs() * @param portName - * the name of the port to be created. * @param portDepth - * the depth of the port to be created * @param granularDepth - * the granular depth of the port to be created * @param mimeTypes - * a List of String representations of the MIME type this port * will emit as outputs. */ protected void addOutput(String portName, int portDepth, int granularDepth) { outputPorts.add(EditsRegistry.getEdits().createActivityOutputPort( portName, portDepth, granularDepth)); }
protected void addOutput(String portName, int portDepth, String type) { OutputPort port = edits.createActivityOutputPort( portName, portDepth, portDepth); MimeType mimeType = new MimeType(); mimeType.setText(type); try { edits.getAddAnnotationChainEdit(port, mimeType).doEdit(); } catch (EditException e) { logger.debug("Error adding MimeType annotation to port", e); } outputPorts.add(port); }
protected void addOutput(String portName, int portDepth, String type) { OutputPort port = edits.createActivityOutputPort( portName, portDepth, portDepth); MimeType mimeType = null; if (type != null) { mimeType = new MimeType(); mimeType.setText(type); } try { edits.getAddAnnotationChainEdit(port, mimeType).doEdit(); } catch (EditException e) { logger.debug("Error adding MimeType annotation to port", e); } outputPorts.add(port); }
OutputPort outputPort = null; if (attribute.getAttributes() != null) { outputPort = edits.createActivityOutputPort(name, 2, STREAM_RESULTS?1:2); } else { outputPort = edits.createActivityOutputPort(name, 1, STREAM_RESULTS?0:1); newOutputMap.put(name, outputMap.remove(name)); } else { OutputPort outputPort = edits.createActivityOutputPort(name, 0, 0); newOutputMap.put(name, outputPort); editList.add(edits.getAddActivityOutputPortEdit(this, outputPort));
OutputPort createActivityOutputPort = edits.createActivityOutputPort( outputDef.getName(), outputDef.getDepth(), outputDef .getGranularDepth());
OutputPort createActivityOutputPort = EditsRegistry.getEdits().createActivityOutputPort( outputDef.getName(), outputDef.getDepth(), outputDef .getGranularDepth());