T- the type of
WorkflowBeanthat this is a child of
public interface Child<T extends WorkflowBean> extends WorkflowBean
WorkflowBeanthat is the child of another
nullif it is orphan
void 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 bean
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.