public class ProcessorOutputPortBinding extends ProcessorPortBinding<OutputActivityPort,OutputProcessorPort>
ProcessorOutputPortBinding
specifies the
OutputActivityPort
from which data is received for an
OutputProcessorPort
.
Note that the OutputProcessorPort
must be a
Port
of the
Processor
of the parent
ProcessorBinding
. The OutputActivityPort
must be a
Port
of the Activity
of the parent ProcessorBinding
.AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
ProcessorOutputPortBinding()
Constructs a
ProcessorOutputPortBinding with no binding set. |
ProcessorOutputPortBinding(ProcessorBinding processorBinding,
OutputActivityPort activityPort,
OutputProcessorPort processorPort)
Constructs a
ProcessorOutputPortBinding for the specified
ProcessorBinding . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
OutputActivityPort |
getBoundActivityPort()
Returns the
OutputActivityPort from which data is received
for the bound OutputProcessorPort . |
OutputProcessorPort |
getBoundProcessorPort()
Returns the
OutputProcessorPort that the binding is for. |
ProcessorBinding |
getParent() |
void |
setBoundActivityPort(OutputActivityPort boundActivityPort)
Sets the
OutputActivityPort from which data is received for
the bound OutputProcessorPort . |
void |
setBoundProcessorPort(OutputProcessorPort boundProcessorPort)
Sets the
OutputProcessorPort that the binding is for. |
void |
setParent(ProcessorBinding parent)
Sets the parent of this workflow bean.
|
String |
toString() |
cloneInto, getAnnotations, getRelativeURI, getURI
clone, cloneWorkflowBean, getTools, getUriTools
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public ProcessorOutputPortBinding()
ProcessorOutputPortBinding
with no binding set.public ProcessorOutputPortBinding(ProcessorBinding processorBinding, OutputActivityPort activityPort, OutputProcessorPort processorPort)
ProcessorOutputPortBinding
for the specified
ProcessorBinding
.processorBinding
- the ProcessorBinding
to add this
ProcessorOutputPortBinding
to. Can be
null
activityPort
- the bound OutputActivityPort
. Can be
null
processorPort
- the bound OutputProcessorPort
. Can be
null
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
accept
in class ProcessorPortBinding<OutputActivityPort,OutputProcessorPort>
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children
should be visited.public OutputActivityPort getBoundActivityPort()
OutputActivityPort
from which data is received
for the bound OutputProcessorPort
.getBoundActivityPort
in class ProcessorPortBinding<OutputActivityPort,OutputProcessorPort>
OutputActivityPort
from which data is received
for the bound OutputProcessorPort
public OutputProcessorPort getBoundProcessorPort()
OutputProcessorPort
that the binding is for.getBoundProcessorPort
in class ProcessorPortBinding<OutputActivityPort,OutputProcessorPort>
OutputProcessorPort
that the binding is forpublic ProcessorBinding getParent()
null
if it is
orphanpublic void setBoundActivityPort(OutputActivityPort boundActivityPort)
OutputActivityPort
from which data is received for
the bound OutputProcessorPort
.setBoundActivityPort
in class ProcessorPortBinding<OutputActivityPort,OutputProcessorPort>
boundActivityPort
- the OutputActivityPort
from which data is
received for the bound OutputProcessorPort
public void setBoundProcessorPort(OutputProcessorPort boundProcessorPort)
OutputProcessorPort
that the binding is for.setBoundProcessorPort
in class ProcessorPortBinding<OutputActivityPort,OutputProcessorPort>
boundProcessorPort
- the OutputProcessorPort
that the binding is forpublic void setParent(ProcessorBinding parent)
Child
Setting the parent would normally also add the object to the relevant collection in the parent if it does not already exist there.
If the child has an existing, object-identity different parent, the child will first be removed from the parent collection if it exists there.
Note:If the child is Named
the parent collection
will be a NamedSet
. This implicit insertion would overwrite any
conflicting sibling with the same Named.getName()
- to avoid
this, add the child to the parent collection by using
NamedSet.addWithUniqueName(Named)
before setting the parent.
parent
- the parent of this workflow beanCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.