Package org.gedcom4j.model

Examples of org.gedcom4j.model.Family


        Gedcom g = gp.gedcom;
        assertNotNull(g);
        assertEquals(1, g.families.size());
        assertEquals(2, g.individuals.size());

        Family family = g.families.get("@F001@");
        assertNotNull(family);
        assertNotNull(family.husband);
        assertEquals("@I001@", family.husband.xref);
        assertEquals("Husband /Gedcom/", family.husband.names.get(0).basic);
View Full Code Here


     * @return true if and only if the ancestor has been found for person
     */
    private boolean lookForAncestor(Individual person, Individual ancestor) {
        if (person != null && person.familiesWhereChild != null) {
            for (FamilyChild fc : person.familiesWhereChild) {
                Family f = fc.family;
                if (ancestor.equals(f.husband) || ancestor.equals(f.wife)) {
                    genCount = 1;
                    return true;
                } else if (lookForAncestor(f.husband, ancestor)) {
                    genCount++;
View Full Code Here

TOP

Related Classes of org.gedcom4j.model.Family

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.