public class OutputWorkflowPort extends AbstractNamed implements ReceiverPort, WorkflowPort, OutputPort
OutputWorkflowPort
is a Workflow
.AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
INVALID_NAME
Constructor and Description |
---|
OutputWorkflowPort()
Constructs an
OutputWorkflowPort with a random UUID as the
name. |
OutputWorkflowPort(Workflow parent,
String name)
Constructs an
OutputWorkflowPort for the specified
Workflow with the specified name. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
List<DataLink> |
getDatalinksTo()
Get the datalinks leading to this port.
|
Workflow |
getParent() |
void |
setParent(Workflow parent)
Sets the parent of this workflow bean.
|
cloneInto, compareTo, equals, getAnnotations, getName, getRelativeURI, getURI, hashCode, setName, toString
clone, cloneWorkflowBean, getTools, getUriTools
finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public OutputWorkflowPort()
OutputWorkflowPort
with a random UUID as the
name.public OutputWorkflowPort(Workflow parent, String name)
OutputWorkflowPort
for the specified
Workflow
with the specified name.
The OutputPort
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 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 Workflow getParent()
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 © 2015–2016 The Apache Software Foundation. All rights reserved.