public class Fact extends Conclusion implements HasDateAndPlace, HasFields
extensionElements, transientProperties| Constructor and Description |
|---|
Fact()
Create a fact.
|
Fact(FactType factType,
Date date,
PlaceReference place)
Create a date/place fact with the passed in type and values.
|
Fact(FactType factType,
Date date,
PlaceReference place,
String value)
Create a date/place fact with the passed in type and values.
|
Fact(FactType factType,
String value)
Create a fact with the passed in type and values.
|
Fact(FactType factType,
String date,
String place)
Create a date/place fact with the passed in type and values.
|
| 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 |
addQualifier(Qualifier qualifier)
Add a qualifier.
|
Fact |
analysis(Document analysis)
Add a reference to the analysis for this conclusion.
|
Fact |
analysis(ResourceReference analysis)
Add a reference to the analysis for this conclusion.
|
Fact |
analysis(URI analysis)
Add a reference to the analysis for this conclusion.
|
Fact |
attribution(Attribution attribution)
Build up this conclusion with attribution.
|
Fact |
confidence(ConfidenceLevel confidence)
Build up this conclusion with a confidence level.
|
Fact |
confidence(URI confidence)
Build up this conclusion with a confidence level.
|
Fact |
date(Date date)
Build up this fact with a date.
|
Fact |
extensionElement(Object element) |
Fact |
field(Field field)
Build up this fact with a field.
|
Date |
getDate()
The date of applicability of this fact.
|
List<Field> |
getFields()
Get the fields being used as evidence.
|
FactType |
getKnownType()
The enum referencing the known type of the fact, or
FactType.OTHER if not known. |
PlaceReference |
getPlace()
The place of applicability of this fact.
|
Boolean |
getPrimary()
Indicator of whether this fact is the "primary" fact of the record from which the subject was extracted.
|
List<Qualifier> |
getQualifiers()
The qualifiers associated with this fact.
|
URI |
getType()
The type of the fact.
|
String |
getValue()
The value as supplied by the user.
|
Fact |
id(String id)
Build up this object with an id.
|
Fact |
lang(String lang)
Build up this conclusion with a lang.
|
Fact |
link(Link link)
Build up this data with a link.
|
Fact |
link(String rel,
URI href)
Build up this data with a link.
|
Fact |
note(Note note)
Build up this conclusion with a note.
|
Fact |
place(PlaceReference place)
Build up this fact with a place.
|
Fact |
primary(Boolean primary)
Build up this fact with a 'primary' flag.
|
Fact |
qualifier(Qualifier qualifier)
Build up this fact with a qualifier.
|
void |
setDate(Date date)
The date of applicability of this fact.
|
void |
setFields(List<Field> fields)
Set the list of fields being used as evidence.
|
void |
setKnownType(FactType knownType)
Set the type of this fact from a known enumeration of fact types.
|
void |
setPlace(PlaceReference place)
The place of applicability of this fact.
|
void |
setPrimary(Boolean primary)
Indicator of whether this fact is the "primary" fact of the record from which the subject was extracted.
|
void |
setQualifiers(List<Qualifier> qualifiers)
Set the qualifiers associated with this fact.
|
void |
setType(URI type)
The type of the fact.
|
void |
setValue(String value)
The value as supplied by the user.
|
Fact |
sortKey(String sortKey)
Build up this fact with a sort key.
|
Fact |
source(SourceDescription source)
Build up this conclusion with a source reference.
|
Fact |
source(SourceReference sourceReference)
Build up this conclusion with a source reference.
|
String |
toString()
Provide a simple toString() method.
|
Fact |
type(FactType type)
Build up this fact with a type.
|
Fact |
type(URI type)
Build up this fact with a type.
|
Fact |
value(String value)
Build up this fact with a value.
|
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSourcesaddLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksaddExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertypublic Fact()
public Fact(FactType factType, String value)
factType - the fact type.value - The value as supplied by the user.public Fact(FactType factType, String date, String place)
factType - the fact type.date - The date of applicability of this fact.place - The place of applicability of this fact.public Fact(FactType factType, Date date, PlaceReference place)
factType - the fact type.date - The date of applicability of this fact.place - The place of applicability of this fact.public Fact(FactType factType, Date date, PlaceReference place, String value)
factType - the fact type.date - The date of applicability of this fact.place - The place of applicability of this fact.value - The value as supplied by the user.public Fact id(String id)
ExtensibleDataid in class Conclusionid - The id.public Fact extensionElement(Object element)
extensionElement in class Conclusionpublic Fact link(String rel, URI href)
HypermediaEnabledDatalink in class Conclusionrel - The rel.href - The href.public Fact link(Link link)
HypermediaEnabledDatalink in class Conclusionlink - The link.public Fact lang(String lang)
Conclusionlang in class Conclusionlang - The lang.public Fact confidence(URI confidence)
Conclusionconfidence in class Conclusionconfidence - The confidence level.public Fact confidence(ConfidenceLevel confidence)
Conclusionconfidence in class Conclusionconfidence - The confidence level.public Fact source(SourceReference sourceReference)
Conclusionsource in class ConclusionsourceReference - The source reference.public Fact source(SourceDescription source)
Conclusionsource in class Conclusionsource - The source description being referenced.public Fact note(Note note)
Conclusionnote in class Conclusionnote - The note.public Fact attribution(Attribution attribution)
Conclusionattribution in class Conclusionattribution - The attribution.public Fact analysis(ResourceReference analysis)
Conclusionanalysis in class Conclusionanalysis - The analysis.public Fact analysis(Document analysis)
Conclusionanalysis in class Conclusionanalysis - The analysis.public Fact analysis(URI analysis)
Conclusionanalysis in class Conclusionanalysis - The analysis.public Fact sortKey(String sortKey)
ConclusionsortKey in class ConclusionsortKey - The sort key.public URI getType()
public void setType(URI type)
type - The type of the fact.public Fact type(URI type)
type - The type.public Fact type(FactType type)
type - The type.public FactType getKnownType()
FactType.OTHER if not known.FactType.OTHER if not known.public void setKnownType(FactType knownType)
knownType - the fact type.public Boolean getPrimary()
public void setPrimary(Boolean primary)
primary - Whether this fact is the primary fact of the record from which the subject was extracted.public Fact primary(Boolean primary)
primary - The primary flag.public Date getDate()
getDate in interface HasDateAndPlacepublic void setDate(Date date)
setDate in interface HasDateAndPlacedate - The date of applicability of this fact.public Fact date(Date date)
date - the date.public PlaceReference getPlace()
getPlace in interface HasDateAndPlacepublic void setPlace(PlaceReference place)
setPlace in interface HasDateAndPlaceplace - The place of applicability of this fact.public Fact place(PlaceReference place)
place - The place.public String getValue()
public void setValue(String value)
value - The value as supplied by the user.public Fact value(String value)
value - The value.public List<Qualifier> getQualifiers()
public void setQualifiers(List<Qualifier> qualifiers)
qualifiers - qualifiers to associate with this fact.public Fact qualifier(Qualifier qualifier)
qualifier - The qualifier.public void addQualifier(Qualifier qualifier)
qualifier - The qualifier.public Fact field(Field field)
field - The field.public void addField(Field field)
field - The field to be added.public String toString()
ConclusiontoString in class Conclusionpublic void accept(GedcomxModelVisitor visitor)
visitor - The visitor.Copyright © 2016. All rights reserved.