/** * Returns the <code>OutputProcessorPort</code> that the binding is for. * * @return the <code>OutputProcessorPort</code> that the binding is for */ @Override public OutputProcessorPort getBoundProcessorPort() { return super.getBoundProcessorPort(); }
/** * Returns the <code>OutputActivityPort</code> from which data is received * for the bound <code>OutputProcessorPort</code>. * * @return the <code>OutputActivityPort</code> from which data is received * for the bound <code>OutputProcessorPort</code> */ @Override public OutputActivityPort getBoundActivityPort() { return super.getBoundActivityPort(); }
/** * Sets the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code>. * * @param boundActivityPort * the <code>InputActivityPort</code> to which data is actually * sent when passed to the bound <code>InputProcessorPort</code> */ @Override public void setBoundActivityPort(InputActivityPort boundActivityPort) { super.setBoundActivityPort(boundActivityPort); }
@Override protected void cloneInto(WorkflowBean clone, Cloning cloning) { @SuppressWarnings("unchecked") ProcessorPortBinding<A, P> cloneBinding = (ProcessorPortBinding<A, P>) clone; cloneBinding.setBoundActivityPort(cloning .cloneOrOriginal(getBoundActivityPort())); cloneBinding.setBoundProcessorPort(cloning .cloneOrOriginal(getBoundProcessorPort())); }
protected ProcessorPortBinding<?, ?> processorPortBindingInternalInBinding( Port port, ProcessorBinding procBinding) { Set<? extends ProcessorPortBinding<?, ?>> portBindings; if (port instanceof InputPort) portBindings = procBinding.getInputPortBindings(); else portBindings = procBinding.getOutputPortBindings(); for (ProcessorPortBinding<?, ?> portBinding : portBindings) { if (port instanceof ProcessorPort && portBinding.getBoundProcessorPort().equals(port)) return portBinding; if (port instanceof ActivityPort && portBinding.getBoundActivityPort().equals(port)) return portBinding; } return null; }
.getBoundProcessorPort(); if (procPort == null) throw new IllegalStateException( + bean); URI procPortUri = relativeUriForBean(procPort, processorPortBinding.getParent().getBoundProcessor()); return parentUri.resolve(procPortUri); } else
/** * Get the URI of this port binding. * * @return The absolute URI. * @see URITools#uriForBean(WorkflowBean) */ public URI getURI() { return getUriTools().uriForBean(this); }
/** * Sets the <code>OutputProcessorPort</code> that the binding is for. * * @param boundProcessorPort * the <code>OutputProcessorPort</code> that the binding is for */ @Override public void setBoundProcessorPort(OutputProcessorPort boundProcessorPort) { super.setBoundProcessorPort(boundProcessorPort); }
/** * Get all the annotations that pertain to this port binding. * * @return The collection of annotations. * @see Scufl2Tools#annotationsFor(Child) */ public Collection<Annotation> getAnnotations() { return getTools().annotationsFor(this); }
/** * Get the URI of this port binding relative to another workflow element. * * @return The relative URI. * @see URITools#relativeUriForBean(WorkflowBean,WorflowBean) */ public URI getRelativeURI(WorkflowBean relativeTo) { return getUriTools().relativeUriForBean(this, relativeTo); } }
/** * Sets the InputProcessorPort that the binding is for. * * @param boundProcessorPort * the InputProcessorPort that the binding is for */ @Override public void setBoundProcessorPort(InputProcessorPort boundProcessorPort) { super.setBoundProcessorPort(boundProcessorPort); }
/** * Returns the <code>InputProcessorPort</code> that the binding is for. * * @return the <code>InputProcessorPort</code> that the binding is for */ @Override public InputProcessorPort getBoundProcessorPort() { return super.getBoundProcessorPort(); }
/** * Sets the <code>OutputActivityPort</code> from which data is received for * the bound <code>OutputProcessorPort</code>. * * @param boundActivityPort * the <code>OutputActivityPort</code> from which data is * received for the bound <code>OutputProcessorPort</code> */ @Override public void setBoundActivityPort(OutputActivityPort boundActivityPort) { super.setBoundActivityPort(boundActivityPort); }
/** * Returns the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code>. * * @return the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code> */ @Override public InputActivityPort getBoundActivityPort() { return super.getBoundActivityPort(); }
@SuppressWarnings("rawtypes") private Set<String> procPortNames( Set<? extends ProcessorPortBinding> portBindings) { Set<String> names = new HashSet<String>(); for (ProcessorPortBinding portBinding : portBindings) { names.add(portBinding.getBoundProcessorPort().getName()); } return names; }