Package org.gedcomx.conclusion
Class Conclusion
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.links.HypermediaEnabledData
-
- org.gedcomx.conclusion.Conclusion
-
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,SupportsExtensionElements,ReferencesSources
public abstract class Conclusion extends HypermediaEnabledData implements Attributable, ReferencesSources, HasNotes
A genealogical conclusion.- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Constructor Summary
Constructors Constructor Description Conclusion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNote(Note note)Add a note.voidaddSource(SourceReference source)Add a source reference.Conclusionanalysis(ResourceReference analysis)Add a reference to the analysis for this conclusion.Conclusionanalysis(URI analysis)Add a reference to the analysis for this conclusion.Conclusionanalysis(Document analysis)Add a reference to the analysis for this conclusion.Conclusionattribution(Attribution attribution)Build up this conclusion with attribution.Conclusionconfidence(URI confidence)Build up this conclusion with a confidence level.Conclusionconfidence(ConfidenceLevel confidence)Build up this conclusion with a confidence level.voidembed(Conclusion conclusion)ConclusionextensionElement(Object element)ResourceReferencegetAnalysis()A reference to the analysis document explaining the analysis that went into this conclusion.AttributiongetAttribution()Attribution metadata for a conclusion.URIgetConfidence()The level of confidence the contributor has about the data.ConfidenceLevelgetKnownConfidenceLevel()The value of a the known confidence level, orConfidenceLevel.OTHERif not known.StringgetLang()The language of the conclusion.List<Note>getNotes()Notes about a person.StringgetSortKey()A sort key in relation to other facts for display purposes.List<SourceReference>getSources()The source references for a conclusion.Conclusionid(String id)Build up this object with an id.Conclusionlang(String lang)Build up this conclusion with a lang.Conclusionlink(String rel, URI href)Build up this data with a link.Conclusionlink(Link link)Build up this data with a link.Conclusionnote(Note note)Build up this conclusion with a note.Stream<Note>notes()Create a stream for the notes of this conclusion.voidsetAnalysis(ResourceReference analysis)A reference to the analysis document explaining the analysis that went into this conclusion.voidsetAttribution(Attribution attribution)Attribution metadata for a conclusion.voidsetConfidence(URI confidence)The level of confidence the contributor has about the data.voidsetKnownConfidenceLevel(ConfidenceLevel level)Set the confidence level from a known enumeration of confidence levels.voidsetLang(String lang)The language of the conclusion.voidsetNotes(List<Note> notes)Notes about a person.voidsetSortKey(String sortKey)A sort key in relation to other facts for display purposes.voidsetSources(List<SourceReference> sourceReferences)The source references for a conclusion.ConclusionsortKey(String sortKey)Build up this fact with a sort key.Conclusionsource(SourceDescription source)Build up this conclusion with a source reference.Conclusionsource(SourceReference sourceReference)Build up this conclusion with a source reference.Stream<SourceReference>sources()Create a stream for the sources of this conclusion.StringtoString()Provide a simple toString() method.-
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
-
-
-
-
Method Detail
-
id
public Conclusion id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public Conclusion extensionElement(Object element)
- Overrides:
extensionElementin classExtensibleData
-
link
public Conclusion link(String rel, URI href)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
public Conclusion link(Link link)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
getLang
public String getLang()
The language of the conclusion. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of the conclusion.
-
setLang
public void setLang(String lang)
The language of the conclusion. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of the conclusion.
-
lang
public Conclusion lang(String lang)
Build up this conclusion with a lang.- Parameters:
lang- The lang.- Returns:
- this.
-
getConfidence
public URI getConfidence()
The level of confidence the contributor has about the data.- Returns:
- The level of confidence the contributor has about the data.
-
setConfidence
public void setConfidence(URI confidence)
The level of confidence the contributor has about the data.- Parameters:
confidence- The level of confidence the contributor has about the data.
-
confidence
public Conclusion confidence(URI confidence)
Build up this conclusion with a confidence level.- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
public Conclusion confidence(ConfidenceLevel confidence)
Build up this conclusion with a confidence level.- Parameters:
confidence- The confidence level.- Returns:
- this.
-
getKnownConfidenceLevel
public ConfidenceLevel getKnownConfidenceLevel()
The value of a the known confidence level, orConfidenceLevel.OTHERif not known.- Returns:
- The value of a the known confidence level, or
ConfidenceLevel.OTHERif not known.
-
setKnownConfidenceLevel
public void setKnownConfidenceLevel(ConfidenceLevel level)
Set the confidence level from a known enumeration of confidence levels.- Parameters:
level- The known level.
-
sources
public Stream<SourceReference> sources()
Create a stream for the sources of this conclusion.- Returns:
- a stream for the sources of this conclusion.
-
getSources
public List<SourceReference> getSources()
The source references for a conclusion.- Specified by:
getSourcesin interfaceReferencesSources- Returns:
- The source references for a conclusion.
-
setSources
public void setSources(List<SourceReference> sourceReferences)
The source references for a conclusion.- Specified by:
setSourcesin interfaceReferencesSources- Parameters:
sourceReferences- The source references for a conclusion.
-
source
public Conclusion source(SourceReference sourceReference)
Build up this conclusion with a source reference.- Parameters:
sourceReference- The source reference.- Returns:
- this.
-
source
public Conclusion source(SourceDescription source)
Build up this conclusion with a source reference.- Parameters:
source- The source description being referenced.- Returns:
- this.
-
addSource
public void addSource(SourceReference source)
Add a source reference.- Parameters:
source- The source reference to be added.
-
notes
public Stream<Note> notes()
Create a stream for the notes of this conclusion.- Returns:
- a stream for the notes of this conclusion.
-
note
public Conclusion note(Note note)
Build up this conclusion with a note.- Parameters:
note- The note.- Returns:
- this.
-
addNote
public void addNote(Note note)
Add a note.- Parameters:
note- The note to be added.
-
getAttribution
public Attribution getAttribution()
Attribution metadata for a conclusion.- Specified by:
getAttributionin interfaceAttributable- Returns:
- Attribution metadata for a conclusion.
-
setAttribution
public void setAttribution(Attribution attribution)
Attribution metadata for a conclusion.- Specified by:
setAttributionin interfaceAttributable- Parameters:
attribution- Attribution metadata for a conclusion.
-
attribution
public Conclusion attribution(Attribution attribution)
Build up this conclusion with attribution.- Parameters:
attribution- The attribution.- Returns:
- this.
-
getAnalysis
public ResourceReference getAnalysis()
A reference to the analysis document explaining the analysis that went into this conclusion.- Returns:
- A reference to the analysis document explaining the analysis that went into this conclusion.
-
setAnalysis
public void setAnalysis(ResourceReference analysis)
A reference to the analysis document explaining the analysis that went into this conclusion.- Parameters:
analysis- A reference to the analysis document explaining the analysis that went into this conclusion.
-
analysis
public Conclusion analysis(ResourceReference analysis)
Add a reference to the analysis for this conclusion.- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
public Conclusion analysis(URI analysis)
Add a reference to the analysis for this conclusion.- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
public Conclusion analysis(Document analysis)
Add a reference to the analysis for this conclusion.- Parameters:
analysis- The analysis.- Returns:
- this.
-
getSortKey
public String getSortKey()
A sort key in relation to other facts for display purposes.- Returns:
- A sort key in relation to other facts for display purposes.
-
setSortKey
public void setSortKey(String sortKey)
A sort key in relation to other facts for display purposes.- Parameters:
sortKey- A sort key in relation to other facts for display purposes.
-
sortKey
public Conclusion sortKey(String sortKey)
Build up this fact with a sort key.- Parameters:
sortKey- The sort key.- Returns:
- this.
-
toString
public String toString()
Provide a simple toString() method.- Overrides:
toStringin classExtensibleData
-
embed
public void embed(Conclusion conclusion)
-
-