public class Date extends ExtensibleData implements HasFields
extensionElements, transientProperties| Constructor and Description |
|---|
Date() |
| Modifier and Type | Method and Description |
|---|---|
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 |
extensionElement(Object element) |
Date |
field(Field field)
Build up this date with a field.
|
Date |
formal(GedcomxDate 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(GedcomxDate 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.
|
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertypublic Date id(String id)
ExtensibleDataid in class ExtensibleDataid - The id.public Date extensionElement(Object element)
extensionElement in class ExtensibleDatapublic String getOriginal()
public void setOriginal(String original)
original - The original text as supplied by the user.public Date original(String original)
original - the original text.public String getFormal()
public void setFormal(String formal)
formal - The formal value.public void setFormalDate(GedcomxDate formal)
formal - The formal value.public Date formal(String formal)
formal - The formal date.public Date formal(GedcomxDate formal)
formal - The formal date.public List<TextValue> getNormalizedExtensions()
public void setNormalizedExtensions(List<TextValue> normalized)
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.public void addNormalizedExtension(TextValue normalizedExtension)
normalizedExtension - The normalizedExtension to be added.public Date field(Field field)
field - The field.public void addField(Field field)
field - The field to be added.public String toString()
ExtensibleDatatoString in class ExtensibleDatapublic void accept(GedcomxModelVisitor visitor)
visitor - The visitor.Copyright © 2016. All rights reserved.