public class ProcessorInputPortBinding extends Object implements ProcessorPortBinding<InputActivityPort,InputProcessorPort>
ProcessorInputPortBinding
specifies the InputActivityPort
to which
data passed into an InputProcessorPort
is sent.
Note that the InputProcessorPort
must be a
Port
of the
Processor
of the parent
ProcessorBinding
. The InputActivityPort
must be a Port
of
the Activity
of the parent
ProcessorBinding
.Constructor and Description |
---|
ProcessorInputPortBinding()
Constructs a
ProcessorInputPortBinding with no binding set. |
ProcessorInputPortBinding(ProcessorBinding processorBinding,
InputProcessorPort processorPort,
InputActivityPort activityPort)
Constructs a
ProcessorInputPortBinding for the specified
ProcessorBinding . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
InputActivityPort |
getBoundActivityPort()
Returns the
InputActivityPort to which data is actually sent when passed to the
bound InputProcessorPort . |
InputProcessorPort |
getBoundProcessorPort()
Returns the
InputProcessorPort that the binding is for. |
ProcessorBinding |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
void |
setBoundActivityPort(InputActivityPort boundActivityPort)
Sets the
InputActivityPort to which data is actually sent when passed to the
bound InputProcessorPort . |
void |
setBoundProcessorPort(InputProcessorPort boundProcessorPort)
Sets the InputProcessorPort that the binding is for.
|
void |
setParent(ProcessorBinding parent)
Sets the parent of this workflow bean.
|
public ProcessorInputPortBinding()
ProcessorInputPortBinding
with no binding set.public ProcessorInputPortBinding(ProcessorBinding processorBinding, InputProcessorPort processorPort, InputActivityPort activityPort)
ProcessorInputPortBinding
for the specified
ProcessorBinding
.processorBinding
- the ProcessorBinding
to add this
ProcessorInputPortBinding
to. Can be null
processorPort
- the bound InputProcessorPort
. Can be null
activityPort
- the bound InputActivityPort
. Can be null
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.public InputActivityPort getBoundActivityPort()
InputActivityPort
to which data is actually sent when passed to the
bound InputProcessorPort
.getBoundActivityPort
in interface ProcessorPortBinding<InputActivityPort,InputProcessorPort>
InputActivityPort
to which data is actually sent when passed to the
bound InputProcessorPort
public InputProcessorPort getBoundProcessorPort()
InputProcessorPort
that the binding is for.getBoundProcessorPort
in interface ProcessorPortBinding<InputActivityPort,InputProcessorPort>
InputProcessorPort
that the binding is forpublic ProcessorBinding getParent()
Child
null
if it is orphan.getParent
in interface Child<ProcessorBinding>
null
if it is orphanpublic void setBoundActivityPort(InputActivityPort boundActivityPort)
InputActivityPort
to which data is actually sent when passed to the
bound InputProcessorPort
.setBoundActivityPort
in interface ProcessorPortBinding<InputActivityPort,InputProcessorPort>
boundActivityPort
- the InputActivityPort
to which data is actually sent when passed to
the bound InputProcessorPort
public void setBoundProcessorPort(InputProcessorPort boundProcessorPort)
setBoundProcessorPort
in interface ProcessorPortBinding<InputActivityPort,InputProcessorPort>
boundProcessorPort
- the InputProcessorPort 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.
setParent
in interface Child<ProcessorBinding>
parent
- the parent of this workflow beanCopyright © 2013 myGrid. All rights reserved.