Package org.gedcomx.conclusion
Class Person
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,HasFacts,SupportsLinks,HasFields,SupportsExtensionElements,ReferencesSources
A person.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidAdd a fact conclusion to the person.voidAdd a reference to the record field values being used as evidence.voidAdd a name conclusion to the person.voidaddPersona(EvidenceReference personaRef) Add an persona reference for 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.displayExtension(DisplayProperties display) Build out this person with a display exension.voidEmbed the specified person into this one.evidence(EvidenceReference evidence) Build up this subject with an evidence reference.extensionElement(Object element) Build up this subject with an extracted flag.Build out this person with a fact.Build out this person with a field.Build out this person with a gender.gender(GenderType gender) Build out this person with a gender.Display properties for the person.getFacts()The fact conclusions for the person.Helper method for obtaining specific fact conclusions.Get the fields being used as evidence.getFirstFactOfType(FactType type) Get the first fact of the specified type.getFirstNameOfType(NameType type) Get the first name of the specified type.The gender conclusion for the person.Living status of the person as treated by the system.getName()Get the first name of this person.getNames()The name conclusions for the person.References to the persona being referenced for this subject.Get the preferred name of the person.The primary fact for this person.Indicator of whether this person is the "principal" person extracted from the record.Whether this person has been designated for limited distribution or display.Build up this object with an id.identifier(Identifier identifier) Build up this subject with an identifier.Build up this conclusion with a lang.Build up this data with a link.Build up this data with a link.Build out this person with a living flag.media(SourceDescription media) Build up this subject with a media reference.media(SourceReference media) Build up this subject with a media reference.Build out this person with a name.Build out this person with a name.names()Create a stream for the names.Build up this conclusion with a note.persistentId(URI persistentId) Build out this person with a persistent ID.personaReference(EvidenceReference persona) Build up this subject with an persona reference.Create a stream of persona references for this subject.Build out this person with a principal flag.voidsetDisplayExtension(DisplayProperties display) Display properties for the person.voidThe fact conclusions for the person.voidSet the list of fields being used as evidence.voidThe gender conclusion for the person.voidLiving status of the person as treated by the system.voidThe name conclusions for the person.voidReferences to the persona being referenced for this subject.voidsetPrincipal(Boolean principal) Indicator of whether this person is the "principal" person extracted from the record.voidsetPrivate(Boolean isPrivate) Whether this person has been designated for limited distribution or display.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.toString()Provide a simple toString() method.Methods inherited from class org.gedcomx.conclusion.Subject
addEvidence, addIdentifier, addMedia, embed, evidence, getEvidence, getExtracted, getIdentifiers, getMedia, getPersistentId, identifiers, media, setEvidence, setExtracted, setIdentifiers, setMedia, setPersistentIdMethods 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, sourcesMethods 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
-
Person
public Person() -
Person
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id. -
extensionElement
- Overrides:
extensionElementin classSubject
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link. -
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link. -
lang
Description copied from class:ConclusionBuild up this conclusion with a lang. -
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classSubject- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classSubject- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference. -
source
Description copied from class:ConclusionBuild up this conclusion with a source reference. -
note
Description copied from class:ConclusionBuild up this conclusion with a note. -
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion. -
attribution
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classSubject- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion. -
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion. -
extracted
Description copied from class:SubjectBuild up this subject with an extracted flag. -
identifier
Description copied from class:SubjectBuild up this subject with an identifier.- Overrides:
identifierin classSubject- Parameters:
identifier- The identifier.- Returns:
- this.
-
evidence
Description copied from class:SubjectBuild up this subject with an evidence reference. -
evidence
-
personaReferences
Create a stream of persona references for this subject.- Returns:
- a stream of persona references for this subject.
-
getPersonaReferences
References to the persona being referenced for this subject.- Returns:
- References to the persona being referenced.
-
setPersonaReferences
References to the persona being referenced for this subject.- Parameters:
refs- References to the persona being referenced.
-
personaReference
Build up this subject with an persona reference.- Parameters:
persona- The persona reference.- Returns:
- this.
-
addPersona
Add an persona reference for this subject.- Parameters:
personaRef- The persona to be added.
-
media
Description copied from class:SubjectBuild up this subject with a media reference. -
media
Description copied from class:SubjectBuild up this subject with a media reference. -
sortKey
Description copied from class:ConclusionBuild up this fact with a sort key. -
getPrivate
Whether this person has been designated for limited distribution or display.- Returns:
- Whether this person has been designated for limited distribution or display.
-
setPrivate
Whether this person has been designated for limited distribution or display.- Parameters:
isPrivate- Whether this person has been designated for limited distribution or display.
-
getLiving
Living status of the person as treated by the system. The value of this property is intended to be based on a system-specific calculation and therefore has limited portability. Conclusions about the living status of a person can be modeled with a fact.- Returns:
- Living status of the person as treated by the system.
-
setLiving
Living status of the person as treated by the system. The value of this property is intended to be based on a system-specific calculation and therefore has limited portability. Conclusions about the living status of a person can be modeled with a fact.- Parameters:
living- Living status of the person as treated by the system.
-
living
Build out this person with a living flag.- Parameters:
living- The flag.- Returns:
- this.
-
getPrincipal
Indicator of whether this person is the "principal" person extracted from the record. Applicable only to extracted persons. The meaning of this flag outside the scope of an extracted person is undefined.- Returns:
- Whether this person is the "principal" person extracted from the record.
-
setPrincipal
Indicator of whether this person is the "principal" person extracted from the record. Applicable only to extracted persons. The meaning of this flag outside the scope of an extracted person is undefined.- Parameters:
principal- Whether this person is the "principal" person extracted from the record.
-
principal
Build out this person with a principal flag.- Parameters:
principal- The principal flag.- Returns:
- this
-
getGender
The gender conclusion for the person.- Returns:
- The gender conclusion for the person.
-
setGender
The gender conclusion for the person.- Parameters:
gender- The gender conclusion for the person.
-
gender
Build out this person with a gender.- Parameters:
gender- The gender.- Returns:
- this.
-
gender
Build out this person with a gender.- Parameters:
gender- The gender.- Returns:
- this.
-
names
Create a stream for the names.- Returns:
- a stream for the names.
-
getNames
The name conclusions for the person.- Returns:
- The name conclusions for the person.
-
getName
Get the first name of this person.- Returns:
- The first name of this person.
-
getFirstNameOfType
Get the first name of the specified type.- Parameters:
type- The type.- Returns:
- the first name in the name list of the specified type, or null if none.
-
getPreferredName
Get the preferred name of the person. If no preferred name is specified, then the first name is returned.- Returns:
- the preferred name of the person or first name if there is no preferred name.
-
setNames
The name conclusions for the person.- Parameters:
names- The name conclusions for the person.
-
name
Build out this person with a name.- Parameters:
name- The name.- Returns:
- this.
-
name
Build out this person with a name.- Parameters:
name- The name.- Returns:
- this.
-
addName
Add a name conclusion to the person.- Parameters:
name- The name conclusion to be added.
-
getFacts
The fact conclusions for the person. -
getPrimaryFact
The primary fact for this person.- Returns:
- The primary fact for this person.
-
getFirstFactOfType
Get the first fact of the specified type.- Parameters:
type- The type.- Returns:
- the first fact in the fact list of the specified type, or null if none.
-
getFacts
Helper method for obtaining specific fact conclusions.- Parameters:
factType- The type of facts to return.- Returns:
- The fact conclusions that match the factType. An empty list will be returned if no facts are found.
-
setFacts
The fact conclusions for the person. -
fact
Build out this person with a fact.- Parameters:
fact- The fact.- Returns:
- this.
-
addFact
Add a fact conclusion to the person.- Parameters:
fact- The fact conclusion to be added.
-
getDisplayExtension
Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Returns:
- Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
setDisplayExtension
Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Parameters:
display- Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
displayExtension
Build out this person with a display exension.- Parameters:
display- the display.- Returns:
- this
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
getFields
Get the fields being used as evidence. -
setFields
Set the list of fields being used as evidence. -
field
Build out this person with a field.- Parameters:
field- The field.- Returns:
- this.
-
addField
Add a reference to the record field values being used as evidence.- Parameters:
field- The field to be added.
-
persistentId
Build out this person with a persistent ID.- Parameters:
persistentId- A long-term, persistent, globally unique identifier for this subject.- Returns:
- this.
-
embed
Embed the specified person into this one.- Parameters:
person- The person to embed.
-
toString
Provide a simple toString() method.- Overrides:
toStringin classConclusion
-