Package org.gedcomx.conclusion
Class Date
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.conclusion.Date
- All Implemented Interfaces:
HasTransientProperties,HasFields,SupportsExtensionElements
A concluded genealogical date.
-
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 normalizedExtension) Add a normalized extension to the list.confidence(URI confidence) Build up this conclusion with a confidence level.confidence(ConfidenceLevel confidence) Build up this conclusion with a confidence level.booleanextensionElement(Object element) Build up this date with a field.Build up this date with a formal representation of the date.formal(GedcomxDate formal) Build up this date with a formal representation of the date.The level of confidence the contributor has about the data.Get the fields being used as evidence.The standardized and/or normalized formal value.The value of a the known confidence level, orConfidenceLevel.OTHERif not known.The list of normalized values for the date, provided for display purposes by the application.The original text as supplied by the user.inthashCode()Build up this object with an id.Create a stream for the normalized value extensions.Build up this date with original text as supplied by the user.voidsetConfidence(URI confidence) The level of confidence the contributor has about the data.voidSet the list of fields being used as evidence.voidThe standardized and/or normalized formal value.voidsetFormalDate(GedcomxDate formal) The standardized and/or normalized formal value.voidSet the confidence level from a known enumeration of confidence levels.voidsetNormalizedExtensions(List<TextValue> normalized) The list of normalized values for the date, provided for display purposes by the application.voidsetOriginal(String original) The original text as supplied by the user.toString()Provide a simple toString() method.Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty
-
Constructor Details
-
Date
public Date() -
Date
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
getOriginal
The original text as supplied by the user.- Returns:
- The original text as supplied by the user.
-
setOriginal
The original text as supplied by the user.- Parameters:
original- The original text as supplied by the user.
-
original
Build up this date with original text as supplied by the user.- Parameters:
original- the original text.- Returns:
- this.
-
getFormal
The standardized and/or normalized formal value.- Returns:
- The formal value.
-
setFormal
The standardized and/or normalized formal value.- Parameters:
formal- The formal value.
-
setFormalDate
The standardized and/or normalized formal value.- Parameters:
formal- The formal value.
-
formal
Build up this date with a formal representation of the date.- Parameters:
formal- The formal date.- Returns:
- this.
-
formal
Build up this date with a formal representation of the date.- Parameters:
formal- The formal date.- 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 date, 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 date, 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 date, 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 date, 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 extension to the list.- Parameters:
normalizedExtension- The normalizedExtension to be added.
-
getFields
Get the fields being used as evidence. -
setFields
Set the list of fields being used as evidence. -
field
Build up this date 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.
-
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()
-