Ejemplo n.º 1
0
 /**
  * Gets the child.
  *
  * @param path the path
  * @return the child
  */
 public ICPEType getChild(String path) {
   for (ICPEType child : children) {
     if (child != null && child.getPath().equals(path)) {
       return child;
     }
   }
   return null;
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see net.kbserve.pyjdt.properties.models.ICPEType#hasChild(java.lang.String)
  */
 public boolean hasChild(String path) {
   for (ICPEType child : children) {
     if (child.getPath().equals(path)) {
       return true;
     }
   }
   return false;
 }