public abstract class AbstractCloneable extends Object implements WorkflowBean
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCloneable.Cloning |
protected static class |
AbstractCloneable.CopyVisitor |
Constructor and Description |
---|
AbstractCloneable() |
Modifier and Type | Method and Description |
---|---|
AbstractCloneable |
clone()
Create a deep clone of this bean.
|
protected abstract void |
cloneInto(WorkflowBean clone,
AbstractCloneable.Cloning cloning) |
static <T extends WorkflowBean> |
cloneWorkflowBean(T obj) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
public AbstractCloneable 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(uk.org.taverna.scufl2.api.container.WorkflowBundle)
before cloning.
clone
in interface WorkflowBean
clone
in class Object
public static <T extends WorkflowBean> T cloneWorkflowBean(T obj)
protected abstract void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
Copyright © 2014 myGrid. All rights reserved.