|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Fact
public class Fact
A conclusion about a fact applicable to a person or relationship.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
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. |
|
| 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 |
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 |
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. |
| Methods inherited from class org.gedcomx.conclusion.Conclusion |
|---|
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources |
| Methods inherited from class org.gedcomx.links.HypermediaEnabledData |
|---|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinks |
| 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 |
|---|
public 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.| Method Detail |
|---|
public Fact id(String id)
ExtensibleData
id in class Conclusionid - The id.
public Fact link(String rel,
URI href)
HypermediaEnabledData
link in class Conclusionrel - The rel.href - The href.
public Fact link(Link link)
HypermediaEnabledData
link in class Conclusionlink - The link.
public Fact lang(String lang)
Conclusion
lang in class Conclusionlang - The lang.
public Fact confidence(URI confidence)
Conclusion
confidence in class Conclusionconfidence - The confidence level.
public Fact confidence(ConfidenceLevel confidence)
Conclusion
confidence in class Conclusionconfidence - The confidence level.
public Fact source(SourceReference sourceReference)
Conclusion
source in class ConclusionsourceReference - The source reference.
public Fact source(SourceDescription source)
Conclusion
source in class Conclusionsource - The source description being referenced.
public Fact note(Note note)
Conclusion
note in class Conclusionnote - The note.
public Fact attribution(Attribution attribution)
Conclusion
attribution in class Conclusionattribution - The attribution.
public Fact analysis(ResourceReference analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Fact analysis(Document analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Fact analysis(URI analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Fact sortKey(String sortKey)
Conclusion
sortKey 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 List<Field> getFields()
getFields in interface HasFieldspublic void setFields(List<Field> fields)
setFields in interface HasFieldsfields - - List of fieldspublic Fact field(Field field)
field - The field.
public void addField(Field field)
field - The field to be added.public String toString()
Conclusion
toString in class Conclusionpublic void accept(GedcomxModelVisitor visitor)
visitor - The visitor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||