public List<InputPort> inputPorts(LocalServiceProcessor processor) throws DuplicatePortNameException, PortCreationException { InputPort port = new InputPort(processor, INPUTLIST); port.setSyntacticType(getSyntacticType()); List<InputPort> ports = new ArrayList<InputPort>(); ports.add(port); InputPort fromIndexPort = new InputPort(processor, FROMINDEX); fromIndexPort.setSyntacticType(LocalWorker.STRING); ports.add(fromIndexPort); InputPort toIndexPort = new InputPort(processor, TOINDEX); toIndexPort.setSyntacticType(LocalWorker.STRING); ports.add(toIndexPort); return ports; }
public List<InputPort> inputPorts(LocalServiceProcessor processor) throws DuplicatePortNameException, PortCreationException { InputPort port = new InputPort(processor, INPUTLIST); port.setSyntacticType(getSyntacticType()); List<InputPort> ports = new ArrayList<InputPort>(); ports.add(port); return ports; }
public void actionPerformed(ActionEvent ae) { // Add a port to the input model! String portName = addInputField.getText(); try { InputPort ip = new InputPort(processor, portName); ip.setSyntacticType("'text/plain'"); processor.addPort(ip); addInputField.setText(""); inputTable.revalidate(); inputTable.repaint(); } catch (PortCreationException ex) { logger.warn("Could not create port " + portName, ex); } catch (DuplicatePortNameException ex) { logger.warn("Duplicate port " + portName, ex); } } };
public List<InputPort> inputPorts(LocalServiceProcessor processor) throws DuplicatePortNameException, PortCreationException { List<InputPort> result = new ArrayList<InputPort>(); for (int i = 0; i < inputNames().length; i++) { // Create input ports InputPort port = new XMLSplittableInputPort(processor, inputNames()[i]); port.setSyntacticType(inputTypes()[i]); result.add(port); } return result; }
public List<InputPort> inputPorts(LocalServiceProcessor processor) throws DuplicatePortNameException, PortCreationException { List<InputPort> result = new ArrayList<InputPort>(); for (int i = 0; i < inputNames().length; i++) { // Create input ports InputPort port = new XMLSplittableInputPort(processor, inputNames()[i]); port.setSyntacticType(inputTypes()[i]); result.add(port); } return result; }
public void actionPerformed(ActionEvent ae) { // Add a port to the input model! try { InputPort ip = new InputPort(processor, addInputField.getText()); ip.setSyntacticType("'text/plain'"); processor.addPort(ip); addInputField.setText(""); inputTable.revalidate(); inputTable.repaint(); } catch (PortCreationException pce) { // } catch (DuplicatePortNameException dpne) { // } } };
/** * Method for creating a new input port */ private void createInputPort() { String portName = JOptionPane.showInputDialog(this, "Enter the name of the input port to be created", "Create a new input port", JOptionPane.QUESTION_MESSAGE); if (portName != null) { try { InputPort inputPort = new InputPort(processor, portName); inputPort.setSyntacticType("'text/plain'"); processor.addPort(inputPort); } catch (PortCreationException pce) { JOptionPane.showMessageDialog(null, "Can not create port: " + pce.getMessage(), "Error creating port", JOptionPane.ERROR_MESSAGE); } catch (DuplicatePortNameException dpne) { JOptionPane.showMessageDialog(null, "A port with the name '" + portName + "' already exists, specify different name", "Error creating port", JOptionPane.ERROR_MESSAGE); } } }
InputPort p = new InputPort(bp, inputName); if (syntacticType != null) p.setSyntacticType(syntacticType); bp.addPort(p); } catch (PortCreationException pce) {
InputPort p = new InputPort(bp, inputName); if (syntacticType != null) p.setSyntacticType(syntacticType); bp.addPort(p); } catch (PortCreationException pce) {
inputPort.setSyntacticType(syntacticType); apProcessor.addPort(inputPort); } catch (PortCreationException pce) {
try { InputPort subjectInput = new InputPort(this, "object"); subjectInput.setSyntacticType(definition.getTavernaObjectTypeString()); addPort(subjectInput); } catch (DuplicatePortNameException e) { pPort.setSyntacticType(tavernaOutputTypes[i]); addPort(pPort); } catch (DuplicatePortNameException e) {
inputRef.setSyntacticType("'text/plain'"); addPort(inputRef); inputString.setSyntacticType("'text/plain'"); addPort(inputString); inputBinary.setSyntacticType("'application/octet-stream'"); addPort(inputBinary); params.setSyntacticType("'text/plain'"); addPort(params);
InputPort inputPort = new XMLSplittableInputPort(this, inNames[i]); inputPort.setSyntacticType(TypeDescriptor .translateJavaType(inTypes[i])); addPort(inputPort);
"simplebeanshell", "", new String[] { "input1", "input2" }, new String[] { "output" }); processor.getInputPorts()[0].setSyntacticType("'text/xml'"); processor.getOutputPorts()[0] .setSyntacticType("l('application/octet-stream')");
"simplebeanshell", "", new String[] { "input1", "input2" }, new String[] { "output" }); processor.getInputPorts()[0].setSyntacticType("'text/xml'"); processor.getOutputPorts()[0] .setSyntacticType("l('application/octet-stream')");
"simplebeanshell", "", new String[] { "input1", "input2" }, new String[] { "output" }); processor.getInputPorts()[0].setSyntacticType("'text/xml'"); processor.getOutputPorts()[0] .setSyntacticType("l('application/octet-stream')");
"simplebeanshell", "", new String[] { "input1", "input2" }, new String[] { "output" }); processor.getInputPorts()[0].setSyntacticType("l('text/plain')");
"simplebeanshell", "", new String[] { "input1", "input2" }, new String[] { "output" }); processor.getInputPorts()[0].setSyntacticType("l('text/plain')");
"simplebeanshell", "", new String[] { "input1", "input2" }, new String[] { "output" }); processor.getInputPorts()[0].setSyntacticType("l('text/plain')");