/** * 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; }
/* * (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; }