Exemplo n.º 1
0
 /**
  * ************************************************************************ 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;
 }
Exemplo n.º 2
0
 /**
  * ************************************************************************ Add a children to this
  * category ***********************************************************************
  */
 public void addChildren(BaseProcedureSystemElement element) {
   m_children.add(element);
   element.setParent(this);
 }