/** * ************************************************************************ Check if this category * contains a child with the given name * * @param name * @return the child if this category contains a child with the name otherwise null is returned * *********************************************************************** */ public BaseProcedureSystemElement getChild(String name) { for (BaseProcedureSystemElement child : getChildren()) { if (child.getName().equals(name)) { return child; } } return null; }
/** * ************************************************************************ Add a children to this * category *********************************************************************** */ public void addChildren(BaseProcedureSystemElement element) { m_children.add(element); element.setParent(this); }