public ModuleItem find ( String name ) { if ( children == null ) return null ; else return ( ModuleItem ) children . get ( name ) ; /* * for(int i=0; i<children.size(); i++) * { * ModuleItem item = (ModuleItem)children.get(i); * if(item.instance != null) * { * if(item.instance.getName().equals(name)) * return item; * } * } * return null; */ }
Find an immediate child