public class InputWorkflowPort extends AbstractDepthPort implements SenderPort, WorkflowPort, InputPort
InputWorkflowPort
is a Workflow
.AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
InputWorkflowPort()
Constructs an
InputWorkflowPort with a random UUID as the name. |
InputWorkflowPort(Workflow parent,
String name)
Constructs an
InputWorkflowPort for the specified Workflow with the
specified name. |
Modifier and Type | Method and Description |
---|---|
Workflow |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
void |
setParent(Workflow parent)
Sets the parent of this workflow bean.
|
accept, cloneInto, getDepth, setDepth
compareTo, equals, getName, hashCode, setName, toString
clone, cloneWorkflowBean
finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public InputWorkflowPort()
InputWorkflowPort
with a random UUID as the name.public InputWorkflowPort(Workflow parent, String name)
InputWorkflowPort
for the specified Workflow
with the
specified name.
The InputPort
is added to the Workflow
(if the
Workflow
is not null
).
parent
- the Workflow
to add this Port
to. Can be
null
name
- the name of the Port
. Must not be null
or an empty String.public Workflow getParent()
Child
null
if it is orphan.public void setParent(Workflow 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.
Copyright © 2013 myGrid. All rights reserved.