Package org.gedcomx.conclusion
Class PlaceReference
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.conclusion.PlaceReference
- All Implemented Interfaces:
HasTransientProperties,HasFields,SupportsExtensionElements
A reference to genealogical place.
-
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 reference to the record field values being used as evidence.voidaddNormalizedExtension(TextValue normalized) Add a normalized value.confidence(URI confidence) Build up this conclusion with a confidence level.confidence(ConfidenceLevel confidence) Build up this conclusion with a confidence level.description(URI ref) Build out this place reference with a reference to a place description.description(PlaceDescription description) Build out this place reference with a reference to a place description.booleanBuild out this place reference with a field.The level of confidence the contributor has about the data.A reference to a description of the place being referenced.Get the fields being used as evidence.The value of a the known confidence level, orConfidenceLevel.OTHERif not known.The list of normalized values for the place, provided for display purposes by the application.The original value as supplied by the user.inthashCode()normalized(String normalized) Build out this place reference with an normalized string.Create a stream for the normalized value extensions.Build out this place reference with an original string.voidsetConfidence(URI confidence) The level of confidence the contributor has about the data.voidsetDescriptionRef(URI descriptionRef) A reference to a description of the place being referenced.voidSet the list of fields being used as evidence.voidSet the confidence level from a known enumeration of confidence levels.voidsetNormalizedExtensions(List<TextValue> normalized) The list of normalized values for the place, provided for display purposes by the application.voidsetOriginal(String original) The original value as supplied by the user.toString()Provide a simple toString() method.Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, extensionElement, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, id, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty
-
Constructor Details
-
PlaceReference
public PlaceReference() -
PlaceReference
-
-
Method Details
-
getOriginal
The original value as supplied by the user.- Returns:
- The original value as supplied by the user.
-
setOriginal
The original value as supplied by the user.- Parameters:
original- The original value as supplied by the user.
-
original
Build out this place reference with an original string.- Parameters:
original- The original string.- Returns:
- this.
-
getDescriptionRef
A reference to a description of the place being referenced.- Returns:
- A reference to a description of the place being referenced.
-
setDescriptionRef
A reference to a description of the place being referenced.- Parameters:
descriptionRef- A reference to a description of the place being referenced.
-
description
Build out this place reference with a reference to a place description.- Parameters:
description- The reference to the place description.- Returns:
- this.
-
description
Build out this place reference with a reference to a place description.- Parameters:
ref- The reference to the place description.- Returns:
- this.
-
getConfidence
The level of confidence the contributor has about the data.- Returns:
- The level of confidence the contributor has about the data.
-
setConfidence
The level of confidence the contributor has about the data.- Parameters:
confidence- The level of confidence the contributor has about the data.
-
confidence
Build up this conclusion with a confidence level.- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
Build up this conclusion with a confidence level.- Parameters:
confidence- The confidence level.- Returns:
- this.
-
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
Set the confidence level from a known enumeration of confidence levels.- Parameters:
level- The known level.
-
normalizedExtensions
Create a stream for the normalized value extensions.- Returns:
- a stream for the normalized value extensions.
-
getNormalizedExtensions
The list of normalized values for the place, provided for display purposes by the application. Normalized values are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Returns:
- The list of normalized values for the place, provided for display purposes by the application. Normalized values are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
setNormalizedExtensions
The list of normalized values for the place, provided for display purposes by the application. Normalized values are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Parameters:
normalized- The list of normalized values for the place, provided for display purposes by the application. Normalized values are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
addNormalizedExtension
Add a normalized value.- Parameters:
normalized- The normalized value.
-
normalized
Build out this place reference with an normalized string.- Parameters:
normalized- The normalized string.- Returns:
- this.
-
getFields
Get the fields being used as evidence. -
setFields
Set the list of fields being used as evidence. -
addField
Add a reference to the record field values being used as evidence.- Parameters:
field- The field to be added.
-
field
Build out this place reference with a field.- Parameters:
field- The field.- Returns:
- this.
-
toString
Description copied from class:ExtensibleDataProvide a simple toString() method.- Overrides:
toStringin classExtensibleData
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
equals
-
hashCode
public int hashCode()
-