Package org.gedcomx.conclusion
Class Name
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Name
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,SupportsExtensionElements,ReferencesSources
A name conclusion.
- 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.voidaddNameForm(NameForm nameForm) Add a name form to the list of name forms.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.Build up this name with a date.extensionElement(Object element) getDate()The date the name was first applied or adopted.The enum referencing the known name type, orNameType.OTHERif not known.The first name form of this name.Alternate forms of the name, such as the romanized form of a non-latin name.getPart(NamePartType namePartType) Gets a specific part of the nameWhether the conclusion is preferred above other conclusions of the same type.getType()The type of the name.Build up this object with an id.Build up this conclusion with a lang.Build up this data with a link.Build up this data with a link.Build up this name with a name form.Create a stream for the name forms of this name.Build up this conclusion with a note.Build up this name with a preferred flag.voidThe date the name was first applied or adopted.voidsetKnownType(NameType knownType) Set the name type from an enumeration of known name types.voidsetNameForms(List<NameForm> nameForms) Alternate forms of the name, such as the romanized form of a non-latin name.voidsetPreferred(Boolean preferred) Whether the conclusion is preferred above other conclusions of the same type.voidThe type of the name.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.Build up this name with a type.Build up this name with a type.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, 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, setTransientProperty
-
Constructor Details
-
Name
public Name() -
Name
-
Name
-
-
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.
-
getType
The type of the name.- Returns:
- The type of the name.
-
setType
The type of the name.- Parameters:
type- The type of the name.
-
type
Build up this name with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
Build up this name with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
The enum referencing the known name type, orNameType.OTHERif not known.- Returns:
- The enum referencing the known name type, or
NameType.OTHERif not known.
-
setKnownType
Set the name type from an enumeration of known name types.- Parameters:
knownType- The known type.
-
getDate
The date the name was first applied or adopted.- Returns:
- The date the name was first applied or adopted.
-
setDate
The date the name was first applied or adopted.- Parameters:
date- The date the name was first applied or adopted.
-
date
Build up this name with a date.- Parameters:
date- The date.- Returns:
- this.
-
nameForms
Create a stream for the name forms of this name.- Returns:
- a stream for the name forms of this name.
-
getNameForms
Alternate forms of the name, such as the romanized form of a non-latin name.- Returns:
- Alternate forms of the name, such as the romanized form of a non-latin name.
-
getNameForm
The first name form of this name.- Returns:
- The first name form of this name.
-
setNameForms
Alternate forms of the name, such as the romanized form of a non-latin name.- Parameters:
nameForms- Alternate forms of the name, such as the romanized form of a non-latin name.
-
nameForm
Build up this name with a name form.- Parameters:
nameForm- The name form.- Returns:
- this.
-
addNameForm
Add a name form to the list of name forms.- Parameters:
nameForm- The name form to be added.
-
getPreferred
Whether the conclusion is preferred above other conclusions of the same type. Useful, for example, for display purposes.- Returns:
- Whether the conclusion is preferred above other conclusions of the same type. Useful, for example, for display purposes.
-
setPreferred
Whether the conclusion is preferred above other conclusions of the same type. Useful, for example, for display purposes.- Parameters:
preferred- Whether the conclusion is preferred above other conclusions of the same type. Useful, for example, for display purposes.
-
preferred
Build up this name with a preferred flag.- Parameters:
preferred- The preferred flag.- Returns:
- this.
-
getPart
Gets a specific part of the name- Parameters:
namePartType- specific part of the name to retrieve- Returns:
- the specific part of the name that matches the given NamePartType
-
toString
Description copied from class:ConclusionProvide a simple toString() method.- Overrides:
toStringin classConclusion
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-