public class IterationStrategyStack extends ArrayList<IterationStrategyTopNode> implements List<IterationStrategyTopNode>, Child<Processor>, IterationStrategyParent
modCount
Constructor and Description |
---|
IterationStrategyStack() |
IterationStrategyStack(Processor parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
WorkflowBean |
clone()
Create a deep clone of this bean.
|
boolean |
equals(Object o) |
Processor |
getParent() |
void |
setParent(Processor parent)
Sets the parent of this workflow bean.
|
String |
toString() |
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public IterationStrategyStack()
public IterationStrategyStack(Processor parent)
public boolean equals(Object o)
equals
in interface Collection<IterationStrategyTopNode>
equals
in interface List<IterationStrategyTopNode>
equals
in class AbstractList<IterationStrategyTopNode>
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 Processor getParent()
public void setParent(Processor 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.
public WorkflowBean clone()
WorkflowBean
The cloned bean will have equivalent properties as the original bean. Any
Child
beans which parent match this bean will be cloned as well
(recursively), non-child beans will remain the same. If this bean is a
Child
, the returned clone will not have a parent set.
Note that children whose Child.getParent()
is null
might not be cloned, to avoid this, use
Scufl2Tools.setParents(org.apache.taverna.scufl2.api.container.WorkflowBundle)
before cloning.
clone
in interface WorkflowBean
clone
in class ArrayList<IterationStrategyTopNode>
public String toString()
toString
in class AbstractCollection<IterationStrategyTopNode>
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.