public class PortNode extends AbstractCloneable implements IterationStrategyNode
AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
PortNode() |
PortNode(IterationStrategyParent parent,
InputProcessorPort inputProcessorPort) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
protected void |
cloneInto(WorkflowBean clone,
AbstractCloneable.Cloning cloning) |
boolean |
equals(Object obj) |
Collection<Annotation> |
getAnnotations()
Get all the annotations that pertain to this port node.
|
Integer |
getDesiredDepth() |
InputProcessorPort |
getInputProcessorPort() |
IterationStrategyParent |
getParent() |
URI |
getRelativeURI(WorkflowBean relativeTo)
Get the URI of this port node relative to another workflow element.
|
URI |
getURI()
Get the URI of this port node.
|
int |
hashCode() |
void |
setDesiredDepth(Integer desiredDepth) |
void |
setInputProcessorPort(InputProcessorPort inputProcessorPort) |
void |
setParent(IterationStrategyParent newParent)
Sets the parent of this workflow bean.
|
String |
toString() |
clone, cloneWorkflowBean, getTools, getUriTools
finalize, getClass, notify, notifyAll, wait, wait, wait
clone
public PortNode()
public PortNode(IterationStrategyParent parent, InputProcessorPort inputProcessorPort)
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 Integer getDesiredDepth()
public InputProcessorPort getInputProcessorPort()
public IterationStrategyParent getParent()
getParent
in interface Child<IterationStrategyParent>
null
if it is
orphanpublic void setDesiredDepth(Integer desiredDepth)
public void setInputProcessorPort(InputProcessorPort inputProcessorPort)
public void setParent(IterationStrategyParent newParent)
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<IterationStrategyParent>
newParent
- the parent of this workflow beanprotected void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
cloneInto
in class AbstractCloneable
public Collection<Annotation> getAnnotations()
Scufl2Tools.annotationsFor(Child)
public URI getURI()
URITools.uriForBean(WorkflowBean)
public URI getRelativeURI(WorkflowBean relativeTo)
URITools#relativeUriForBean(WorkflowBean,WorflowBean)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.