T
- the type of WorkflowBean
that this is a child ofpublic interface Child<T extends WorkflowBean> extends WorkflowBean
WorkflowBean
that is the child of another WorkflowBean
.Modifier and Type | Method and Description |
---|---|
T |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
void |
setParent(T parent)
Sets the parent of this workflow bean.
|
accept, clone
T getParent()
null
if it is orphan.null
if it is orphanvoid setParent(T parent)
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.
parent
- the parent of this workflow beanCopyright © 2014 myGrid. All rights reserved.