Package org.gedcomx.conclusion
Class FamilyView
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.FamilyView
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
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.
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(ResourceReference child) Add a child.child(ResourceReference child) Build out this family by adding a child.voidembed(FamilyView family) A list of references to the children of this family.A reference to a parent in the family.A reference to a parent in the family.parent1(ResourceReference parent1) Build out this family with a reference to parent1.parent2(ResourceReference parent2) Build out this family with a reference to parent2.voidsetChildren(List<ResourceReference> children) A list of references to the children of this family.voidsetParent1(ResourceReference parent1) A reference to a parent in the family.voidsetParent2(ResourceReference parent2) A reference to a parent in the family.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, link, link, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, extensionElement, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, id, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
FamilyView
public FamilyView() -
FamilyView
-
-
Method Details
-
getParent1
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.- Returns:
- 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.
-
setParent1
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.- Parameters:
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.
-
parent1
Build out this family with a reference to parent1.- Parameters:
parent1- Parent 1.- Returns:
- this.
-
getParent2
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.- Returns:
- 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.
-
setParent2
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.- Parameters:
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.
-
parent2
Build out this family with a reference to parent2.- Parameters:
parent2- Parent 2.- Returns:
- this.
-
getChildren
A list of references to the children of this family.- Returns:
- A list of references to the children of this family.
-
setChildren
A list of references to the children of this family.- Parameters:
children- A list of references to the children of this family.
-
child
Build out this family by adding a child.- Parameters:
child- The child to add.- Returns:
- this.
-
addChild
Add a child.- Parameters:
child- The child to add.
-
embed
-