public interface WorkflowBean extends Cloneable
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 accept(Visitor visitor)
Visitor
to this WorkflowBean
.visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.WorkflowBean clone()
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(uk.org.taverna.scufl2.api.container.WorkflowBundle)
before cloning.
Copyright © 2013 myGrid. All rights reserved.