getTargetHome returns the <code>EJSHome</code> associated with the indicated
child bean.

@param child String representing the child bean to be found.

@return <code>EJSHome</code> associated with the child HomeRecord.
18394
public EJSHome getTargetHome(String child)
    {
        EJSHome targetHome = null;
        HomeRecord targetHomeRecord = childBeans.get(child);
        if (targetHomeRecord == null) {
            //try recursively
            Enumeration<HomeRecord> children = childBeans.elements();
            while (children.hasMoreElements()) {
                HomeRecord childHomeRecord = children.nextElement();
                targetHome = childHomeRecord.getTargetHome(child);
                if (targetHome != null)
                    break;
            }
        }
        // Get the EJSHome from the homeRecord.  If the home has not been
        // initialized yet, call HomeOfHomes.getHome() to trigger it.
        if (targetHomeRecord != null) {
            targetHome = targetHomeRecord.getHomeAndInitialize(); // d648522
        }
        return targetHome;
    }
620218
public static String resolve( String base, String child )
	{
		String childPath = child.startsWith( "/" ) ? child.substring( 1 ) : child;
		String basePath = base.endsWith( "/" ) ? base : base + "/";
		return basePath + childPath;
	}
477068
public static String child(Resource base, String path) {
        Resource child = base.getChild(path);
        return child != null ? child.getPath() : path;
    }
1009595
public HFCAAffiliation getChild(String name) throws AffiliationException, InvalidArgumentException {
        if (this.deleted) {
            throw new AffiliationException("Affiliation has been deleted");
        }
        validateSingleAffiliationName(name);
        for (HFCAAffiliation childAff : this.childHFCAAffiliations) {
            if (childAff.getName().equals(this.name + "." + name)) {
                return childAff;
            }
        }
        return null;
    }
348526
public static AlertContainer render(BaseComponent parent, BaseComponent child) {
        AlertContainer container = new AlertContainer(child);
        parent.addChild(container, 0);
        return container;
    }
266003
public BeanMappingObject getBeanMappingObject(Class src, Class target) {
        return getFromRepository(src, target, this.repository);
    }
681235
public void removeChild(String child)
    {
        final Xml node = getChild(child);
        root.removeChild(node.getElement());
    }
1033377
public void addChild(ViewNode child) throws IllegalArgumentException {
		tree.addNode(child);
		child.setParent(this);
		this.leaf = false; // 一旦增加子节点，该节点就不是叶了。
		int n = children.size();
		if (n > 0) {
			ViewNode node = (ViewNode) children.get(n - 1);
			node.setLast(false);
		}
		child.setLast(true);
		children.add(child);
	}
1368501
public static <T> IAccessor<List<T>> createListAccessor(final IAccessor<T> child) {
        return new IAccessor<List<T>>() {
            @Override
            public List<T> readFromStream(DataInputStream in) throws IOException {
                int n = in.readInt();
                if (n >= 0) {
                    List<T> list = new ArrayList<T>();
                    for (int i = 0; i < n; i++) {
                        list.add(child.readFromStream(in));
                    }
                    return list;
                } else {
                    return null;
                }
            }

            @Override
            public void writeToStream(DataOutputStream out, List<T> value) throws IOException {
                if (value != null) {
                    out.writeInt(value.size());
                    for (T v : value) {
                        child.writeToStream(out, v);
                    }
                } else {
                    out.writeInt(-1);
                }
            }

            @Override
            public List<T> readFromParcel(Parcel p) {
                int n = p.readInt();
                if (n >= 0) {
                    List<T> list = new ArrayList<T>();
                    for (int i = 0; i < n; i++) {
                        list.add(child.readFromParcel(p));
                    }
                    return list;
                } else {
                    return null;
                }
            }

            @Override
            public void writeToParcel(Parcel p, List<T> value) {
                if (value != null) {
                    p.writeInt(value.size());
                    for (T v : value) {
                        child.writeToParcel(p, v);
                    }
                } else {
                    p.writeInt(-1);
                }
            }

            @Override
            public List<T> readFromCursor(Cursor c, int idx) {
                byte[] bs = BlobAccessor.createAccessor(byte[].class).readFromCursor(c, idx);
                if (bs != null) {
                    try {
                        DataInputStream din = new DataInputStream(new ByteArrayInputStream(bs));
                        return readFromStream(din);
                    } catch (IOException e) {
                        return null;
                    }
                } else {
                    return null;
                }
            }

            @Override
            public void putToContentValues(ContentValues values, String columnName, List<T> value) {
                byte[] bs = null;
                if (value != null) {
                    try {
                        ByteArrayOutputStream bout = new ByteArrayOutputStream();
                        DataOutputStream dout = new DataOutputStream(bout);
                        writeToStream(dout, value);
                        dout.flush();
                        bs = bout.toByteArray();
                    } catch (IOException e) {
                        // ignore
                    }
                }
                values.put(columnName, bs);
            }

            @Override
            public String stringValue(List<T> value) {
                return value != null ? String.valueOf(value) : null;
            }
        };
    }
1272801
def get_child(self, name, attribs=None):
        
        if name == '.':
            if attribs is None or len(attribs) == 0:
                return self
            if attribs == self.attribs:
                return self
        return self.child_index.get(nodehash(name, attribs))
1228677
public HomeRecord getHomeRecord(J2EEName name) { //LIDB859-4
        HomeRecord hr = homesByName.get(name); // d366845.3
        return hr;
    }
101545
public static Component findParent(final Component childComponent,
		final Class<? extends Component> parentClass)
	{
		return findParent(childComponent, parentClass, true);
	}
750130
public Config getChild(String name)
  {
    Params.notNullOrEmpty(name, "Child name");
    for(Config child : children) {
      if(child.name.equals(name)) {
        return child;
      }
    }
    return null;
  }
679634
public BeanMappingObject getBeanMappingObject(Class src, Class target, boolean autoRegister) {
        BeanMappingObject object = autoRepository.getBeanMappingObject(src, target);
        if (object == null && autoRegister) {
            autoRepository.register(src, target);
            object = getFromRepository(src, target, this.autoRepository);
        }
        return object;
    }
71667
public Node<T> addChild(Node<T> child) {
        if (children == null) {
            children = new ArrayList<Node<T>>();
        }
        child.parent = this;
        children.add(child);

        return child;
    }
1070552
function (child) {
            var index = 0,
                element;

            for (var i = 0; i < this.$parent.$children.length; i++) {
                element = this.$parent.$children[i];
                if (element === this) {
                    return ++index;
                } else {
                    index++;
                }
            }
            return index;
        }
949835
public Element findChild(Element child) {
        return new Element(child.getDriver(), reporter, child.getType(), child.getLocator(), child.getMatch(), this);
    }