Package org.gedcomx.conclusion
Class Subject
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Subject
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,SupportsExtensionElements,ReferencesSources
- Direct Known Subclasses:
Event,Person,PlaceDescription,Relationship
The
Subject data type defines the abstract concept of a genealogical subject. A subject is something with a unique and
intrinsic identity, e.g., a person, a location on the surface of the earth. We identify that subject in time and space using various supporting
conclusions, e.g. for a person: things like name, birth date, age, address, etc. We aggregate these supporting conclusions to form an
apparently-unique identity by which we can distinguish our subject from all other possible subjects.- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvidence(EvidenceReference evidenceRef) Add an evidence reference for this subject.voidaddIdentifier(Identifier identifier) Add an identifier of the subject.voidaddMedia(SourceReference mediaRef) Add an media reference associated with this subject.analysis(ResourceReference analysis) Add a reference to the analysis for this conclusion.Add a reference to the analysis for this conclusion.Add a reference to the analysis for this conclusion.attribution(Attribution attribution) Build up this conclusion with attribution.confidence(URI confidence) Build up this conclusion with a confidence level.confidence(ConfidenceLevel confidence) Build up this conclusion with a confidence level.protected voidevidence()Create a stream for the evidences.evidence(EvidenceReference evidence) Build up this subject with an evidence reference.extensionElement(Object element) Build up this subject with an extracted flag.References to the evidence being referenced for this subject.Whether this subject has been identified as "extracted", meaning it captures information extracted from a single source.The list of identifiers for the subject.getMedia()References to multimedia resources associated with this subject.Find the long-term, persistent identifier for this subject from the list of identifiers.Build up this object with an id.identifier(Identifier identifier) Build up this subject with an identifier.Create a stream for the identifiers.Build up this conclusion with a lang.Build up this data with a link.Build up this data with a link.media()Create a stream for the media.media(SourceDescription media) Build up this subject with a media reference.media(SourceReference media) Build up this subject with a media reference.Build up this conclusion with a note.voidsetEvidence(List<EvidenceReference> evidence) References to the evidence being referenced for this subject.voidsetExtracted(Boolean extracted) Whether this subject has been identified as "extracted", meaning it captures information extracted from a single source.voidsetIdentifiers(List<Identifier> identifiers) The list of identifiers of the subject.voidsetMedia(List<SourceReference> media) References to multimedia resources associated with this subject.voidsetPersistentId(URI persistentId) A long-term, persistent, globally unique identifier for this subject.Build up this fact with a sort key.source(SourceDescription source) Build up this conclusion with a source reference.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, notes, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, sources, toStringMethods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gedcomx.common.Attributable
getAttribution, setAttribution
-
Constructor Details
-
Subject
public Subject() -
Subject
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classConclusion- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classConclusion
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
link- The link.- Returns:
- this.
-
lang
Description copied from class:ConclusionBuild up this conclusion with a lang.- Overrides:
langin classConclusion- Parameters:
lang- The lang.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
sourceReference- The source reference.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
source- The source description being referenced.- Returns:
- this.
-
note
Description copied from class:ConclusionBuild up this conclusion with a note.- Overrides:
notein classConclusion- Parameters:
note- The note.- Returns:
- this.
-
attribution
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classConclusion- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
sortKey
Description copied from class:ConclusionBuild up this fact with a sort key.- Overrides:
sortKeyin classConclusion- Parameters:
sortKey- The sort key.- Returns:
- this.
-
getExtracted
Whether this subject has been identified as "extracted", meaning it captures information extracted from a single source.- Returns:
- Whether this subject has been identified as "extracted".
-
setExtracted
Whether this subject has been identified as "extracted", meaning it captures information extracted from a single source.- Parameters:
extracted- Whether this subject has been identified as "extracted".
-
extracted
Build up this subject with an extracted flag.- Parameters:
extracted- The extracted flag.- Returns:
- this.
-
getPersistentId
Find the long-term, persistent identifier for this subject from the list of identifiers.- Returns:
- The long-term, persistent identifier for this subject.
-
setPersistentId
A long-term, persistent, globally unique identifier for this subject.- Parameters:
persistentId- A long-term, persistent, globally unique identifier for this subject.
-
identifiers
Create a stream for the identifiers.- Returns:
- a stream for the identifiers.
-
getIdentifiers
The list of identifiers for the subject.- Returns:
- The list of identifiers for the subject.
-
setIdentifiers
The list of identifiers of the subject.- Parameters:
identifiers- The list of identifiers of the subject.
-
identifier
Build up this subject with an identifier.- Parameters:
identifier- The identifier.- Returns:
- this.
-
addIdentifier
Add an identifier of the subject.- Parameters:
identifier- The identifier to be added.
-
evidence
Create a stream for the evidences.- Returns:
- a stream for the evidences.
-
getEvidence
References to the evidence being referenced for this subject.- Returns:
- References to the evidence being referenced.
-
setEvidence
References to the evidence being referenced for this subject.- Parameters:
evidence- References to the evidence being referenced.
-
evidence
Build up this subject with an evidence reference.- Parameters:
evidence- The evidence reference.- Returns:
- this.
-
addEvidence
Add an evidence reference for this subject.- Parameters:
evidenceRef- The evidence to be added.
-
media
Create a stream for the media.- Returns:
- a stream for the media.
-
getMedia
References to multimedia resources associated with this subject.- Returns:
- References to multimedia resources associated with this subject.
-
setMedia
References to multimedia resources associated with this subject.- Parameters:
media- References to multimedia resources associated with this subject.
-
media
Build up this subject with a media reference.- Parameters:
media- The media reference.- Returns:
- this.
-
media
Build up this subject with a media reference.- Parameters:
media- The media reference.- Returns:
- this.
-
addMedia
Add an media reference associated with this subject.- Parameters:
mediaRef- The reference to the media to be added.
-
embed
-