org.gedcomx.conclusion
Class Date

java.lang.Object
  extended by org.gedcomx.common.ExtensibleData
      extended by org.gedcomx.conclusion.Date
All Implemented Interfaces:
HasTransientProperties, HasFields, SupportsExtensionElements

public class Date
extends ExtensibleData
implements HasFields

A concluded genealogical date.


Field Summary
 
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
 
Constructor Summary
Date()
           
 
Method Summary
 void accept(GedcomxModelVisitor visitor)
          Accept a visitor.
 void addField(Field field)
          Add a reference to the record field values being used as evidence.
 void addNormalizedExtension(TextValue normalizedExtension)
          Add a normalized extension to the list.
 Date field(Field field)
          Build up this date with a field.
 Date formal(FormalDate formal)
          Build up this date with a formal representation of the date.
 Date formal(String formal)
          Build up this date with a formal representation of the date.
 List<Field> getFields()
          Get the fields being used as evidence.
 String getFormal()
          The standardized and/or normalized formal value.
 List<TextValue> getNormalizedExtensions()
          The list of normalized values for the date, provided for display purposes by the application.
 String getOriginal()
          The original text as supplied by the user.
 Date id(String id)
          Build up this object with an id.
 Date original(String original)
          Build up this date with original text as supplied by the user.
 void setFields(List<Field> fields)
          Set the list of fields being used as evidence.
 void setFormal(String formal)
          The standardized and/or normalized formal value.
 void setFormalDate(FormalDate formal)
          The standardized and/or normalized formal value.
 void setNormalizedExtensions(List<TextValue> normalized)
          The list of normalized values for the date, provided for display purposes by the application.
 void setOriginal(String original)
          The original text as supplied by the user.
 String 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date()
Method Detail

id

public Date id(String id)
Description copied from class: ExtensibleData
Build up this object with an id.

Overrides:
id in class ExtensibleData
Parameters:
id - The id.

getOriginal

public String getOriginal()
The original text as supplied by the user.

Returns:
The original text as supplied by the user.

setOriginal

public void setOriginal(String original)
The original text as supplied by the user.

Parameters:
original - The original text as supplied by the user.

original

public Date original(String original)
Build up this date with original text as supplied by the user.

Parameters:
original - the original text.
Returns:
this.

getFormal

public String getFormal()
The standardized and/or normalized formal value.

Returns:
The formal value.

setFormal

public void setFormal(String formal)
The standardized and/or normalized formal value.

Parameters:
formal - The formal value.

setFormalDate

public void setFormalDate(FormalDate formal)
The standardized and/or normalized formal value.

Parameters:
formal - The formal value.

formal

public Date formal(String formal)
Build up this date with a formal representation of the date.

Parameters:
formal - The formal date.
Returns:
this.

formal

public Date formal(FormalDate formal)
Build up this date with a formal representation of the date.

Parameters:
formal - The formal date.
Returns:
this.

getNormalizedExtensions

public List<TextValue> 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

public void setNormalizedExtensions(List<TextValue> 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.

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

public void addNormalizedExtension(TextValue normalizedExtension)
Add a normalized extension to the list.

Parameters:
normalizedExtension - The normalizedExtension to be added.

getFields

public List<Field> getFields()
Get the fields being used as evidence.

Specified by:
getFields in interface HasFields
Returns:
The references to the record fields being used as evidence.

setFields

public void setFields(List<Field> fields)
Set the list of fields being used as evidence.

Specified by:
setFields in interface HasFields
Parameters:
fields - - List of fields

field

public Date field(Field field)
Build up this date with a field.

Parameters:
field - The field.
Returns:
this.

addField

public void addField(Field field)
Add a reference to the record field values being used as evidence.

Parameters:
field - The field to be added.

toString

public String toString()
Description copied from class: ExtensibleData
Provide a simple toString() method.

Overrides:
toString in class ExtensibleData

accept

public void accept(GedcomxModelVisitor visitor)
Accept a visitor.

Parameters:
visitor - The visitor.


Copyright © 2015. All rights reserved.