|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Family
public class Family
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 class 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. While in theory a Family object could
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
Family()
|
|
| Method Summary | |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor. |
void |
addChild(ResourceReference child)
Add a child. |
Family |
analysis(Document analysis)
Add a reference to the analysis for this conclusion. |
Family |
analysis(ResourceReference analysis)
Add a reference to the analysis for this conclusion. |
Family |
analysis(URI analysis)
Add a reference to the analysis for this conclusion. |
Family |
attribution(Attribution attribution)
Build up this conclusion with attribution. |
Family |
child(ResourceReference child)
Build out this family by adding a child. |
Family |
confidence(ConfidenceLevel confidence)
Build up this conclusion with a confidence level. |
Family |
confidence(URI confidence)
Build up this conclusion with a confidence level. |
void |
embed(Family family)
|
List<ResourceReference> |
getChildren()
A list of references to the children of this family. |
Boolean |
getIncludesKnownChildren()
Flag indicating whether the list of known children are included in this family view. |
ResourceReference |
getParent1()
A reference to a parent in the family. |
ResourceReference |
getParent2()
A reference to a parent in the family. |
Boolean |
getPreferred()
Flag indicating whether this family is the "preferred" one in the list of families as spouses or families as parents for the main person in a GedcomX document. |
Family |
id(String id)
Build up this object with an id. |
Family |
lang(String lang)
Build up this conclusion with a lang. |
Family |
link(Link link)
Build up this data with a link. |
Family |
link(String rel,
URI href)
Build up this data with a link. |
Family |
note(Note note)
Build up this conclusion with a note. |
Family |
parent1(ResourceReference parent1)
Build out this family with a reference to parent1. |
Family |
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 |
setIncludesKnownChildren(Boolean includesKnownChildren)
|
void |
setParent1(ResourceReference parent1)
A reference to a parent in the family. |
void |
setParent2(ResourceReference parent2)
A reference to a parent in the family. |
void |
setPreferred(Boolean isPreferred)
|
Family |
source(SourceDescription source)
Build up this conclusion with a source reference. |
Family |
source(SourceReference sourceReference)
Build up this conclusion with a source reference. |
| Methods inherited from class org.gedcomx.conclusion.Conclusion |
|---|
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, sortKey, toString |
| Methods inherited from class org.gedcomx.links.HypermediaEnabledData |
|---|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinks |
| Methods inherited from class org.gedcomx.common.ExtensibleData |
|---|
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Family()
| 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 Family 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 Family 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 Family child(ResourceReference child)
child - The child to add.
public void addChild(ResourceReference child)
child - The child to add.public Family id(String id)
ExtensibleData
id in class Conclusionid - The id.
public Family link(String rel,
URI href)
HypermediaEnabledData
link in class Conclusionrel - The rel.href - The href.
public Family link(Link link)
HypermediaEnabledData
link in class Conclusionlink - The link.
public Family lang(String lang)
Conclusion
lang in class Conclusionlang - The lang.
public Family confidence(URI confidence)
Conclusion
confidence in class Conclusionconfidence - The confidence level.
public Family confidence(ConfidenceLevel confidence)
Conclusion
confidence in class Conclusionconfidence - The confidence level.
public Family source(SourceReference sourceReference)
Conclusion
source in class ConclusionsourceReference - The source reference.
public Family source(SourceDescription source)
Conclusion
source in class Conclusionsource - The source description being referenced.
public Family note(Note note)
Conclusion
note in class Conclusionnote - The note.
public Family analysis(ResourceReference analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Family attribution(Attribution attribution)
Conclusion
attribution in class Conclusionattribution - The attribution.
public Family analysis(Document analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Family analysis(URI analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Boolean getIncludesKnownChildren()
public void setIncludesKnownChildren(Boolean includesKnownChildren)
public Boolean getPreferred()
public void setPreferred(Boolean isPreferred)
public void accept(GedcomxModelVisitor visitor)
visitor - The visitor to accept.public void embed(Family family)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||