|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.conclusion.FamilyView
public class FamilyView
A family view, meaning up to two parents and a list of children who have those parents in common. Relationships carry the canonical information for this view, and the relationships must be used to get Facts (lineage types, marriages, etc.) about the relationships covered by a Family. The Family data type provides a convenient way to see the typical family views without having to do the calculations to derive them. There should only be one family for each unique set of parents, and only one for each single-parent family with a particular parent.
| Constructor Summary | |
|---|---|
FamilyView()
|
|
| Method Summary | |
|---|---|
void |
addChild(ResourceReference child)
Add a child. |
FamilyView |
child(ResourceReference child)
Build out this family by adding a child. |
void |
embed(FamilyView family)
|
List<ResourceReference> |
getChildren()
A list of references to the children of this family. |
ResourceReference |
getParent1()
A reference to a parent in the family. |
ResourceReference |
getParent2()
A reference to a parent in the family. |
FamilyView |
parent1(ResourceReference parent1)
Build out this family with a reference to parent1. |
FamilyView |
parent2(ResourceReference parent2)
Build out this family with a reference to parent2. |
void |
setChildren(List<ResourceReference> children)
A list of references to the children of this family. |
void |
setParent1(ResourceReference parent1)
A reference to a parent in the family. |
void |
setParent2(ResourceReference parent2)
A reference to a parent in the family. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FamilyView()
| Method Detail |
|---|
public ResourceReference getParent1()
public void setParent1(ResourceReference parent1)
parent1 - A reference to a parent in the family. The name "parent1" is used only to distinguish it from
the other parent in this family and implies neither order nor role.public FamilyView parent1(ResourceReference parent1)
parent1 - Parent 1.
public ResourceReference getParent2()
public void setParent2(ResourceReference parent2)
parent2 - A reference to a parent in the family. The name "parent2" is used only to distinguish it from
the other parent in this family and implies neither order nor role.public FamilyView parent2(ResourceReference parent2)
parent2 - Parent 2.
public List<ResourceReference> getChildren()
public void setChildren(List<ResourceReference> children)
children - A list of references to the children of this family.public FamilyView child(ResourceReference child)
child - The child to add.
public void addChild(ResourceReference child)
child - The child to add.public void embed(FamilyView family)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||