|
||||||||||
| 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.Subject
org.gedcomx.conclusion.Relationship
public class Relationship
A relationship between two or more persons.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
Relationship()
|
|
| Method Summary | |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor. |
void |
addFact(Fact fact)
Add a fact conclusion. |
void |
addField(Field field)
Add a reference to the record field values being used as evidence. |
Relationship |
analysis(Document analysis)
Add a reference to the analysis for this conclusion. |
Relationship |
analysis(ResourceReference analysis)
Add a reference to the analysis for this conclusion. |
Relationship |
analysis(URI analysis)
Add a reference to the analysis for this conclusion. |
Relationship |
attribution(Attribution attribution)
Build up this conclusion with attribution. |
Relationship |
confidence(ConfidenceLevel confidence)
Build up this conclusion with a confidence level. |
Relationship |
confidence(URI confidence)
Build up this conclusion with a confidence level. |
void |
embed(Relationship relationship)
|
Relationship |
evidence(EvidenceReference evidence)
Build up this subject with an evidence reference. |
Relationship |
evidence(Relationship evidence)
|
Relationship |
extracted(Boolean extracted)
Build up this subject with an extracted flag. |
Relationship |
fact(Fact fact)
Build out this relationship with a fact. |
Relationship |
field(Field field)
Build out this relationship with a field. |
List<Fact> |
getFacts()
The fact conclusions for the relationship. |
List<Field> |
getFields()
Get the fields being used as evidence. |
RelationshipType |
getKnownType()
The enum referencing the known type of the relationship, or RelationshipType.OTHER if not known. |
ResourceReference |
getPerson1()
A reference to a person in the relationship. |
ResourceReference |
getPerson2()
A reference to a person in the relationship. |
URI |
getType()
The type of this relationship. |
Relationship |
id(String id)
Build up this object with an id. |
Relationship |
identifier(Identifier identifier)
Build up this subject with an identifier. |
Relationship |
lang(String lang)
Build up this conclusion with a lang. |
Relationship |
link(Link link)
Build up this data with a link. |
Relationship |
link(String rel,
URI href)
Build up this data with a link. |
Relationship |
media(SourceDescription media)
Build up this subject with a media reference. |
Relationship |
media(SourceReference media)
Build up this subject with a media reference. |
Relationship |
note(Note note)
Build up this conclusion with a note. |
Relationship |
person1(Person person1)
Build out this relationship with a reference to person 1. |
Relationship |
person1(ResourceReference person1)
Build out this relationship with a reference to person 1. |
Relationship |
person2(Person person2)
Build out this relationship with a reference to person 2. |
Relationship |
person2(ResourceReference person2)
Build out this relationship with a reference to person 2. |
void |
setFacts(List<Fact> facts)
The fact conclusions for the relationship. |
void |
setFields(List<Field> fields)
Set the list of fields being used as evidence. |
void |
setKnownType(RelationshipType type)
Set the relationship type from a known enumeration of relationship types. |
void |
setPerson1(ResourceReference person1)
A reference to a person in the relationship. |
void |
setPerson2(ResourceReference person2)
A reference to a person in the relationship. |
void |
setType(URI type)
The type of this relationship. |
Relationship |
sortKey(String sortKey)
Build up this fact with a sort key. |
Relationship |
source(SourceDescription source)
Build up this conclusion with a source reference. |
Relationship |
source(SourceReference sourceReference)
Build up this conclusion with a source reference. |
Relationship |
type(RelationshipType type)
Build out this relationship with a type. |
Relationship |
type(URI type)
Build out this relationship with a type. |
| Methods inherited from class org.gedcomx.conclusion.Subject |
|---|
addEvidence, addIdentifier, addMedia, embed, getEvidence, getExtracted, getIdentifiers, getMedia, getPersistentId, setEvidence, setExtracted, setIdentifiers, setMedia, setPersistentId |
| 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, toString |
| 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 |
| Methods inherited from interface org.gedcomx.common.Attributable |
|---|
getAttribution, setAttribution |
| Constructor Detail |
|---|
public Relationship()
| Method Detail |
|---|
public Relationship id(String id)
ExtensibleData
id in class Subjectid - The id.
public Relationship link(String rel,
URI href)
HypermediaEnabledData
link in class Subjectrel - The rel.href - The href.
public Relationship link(Link link)
HypermediaEnabledData
link in class Subjectlink - The link.
public Relationship lang(String lang)
Conclusion
lang in class Subjectlang - The lang.
public Relationship confidence(URI confidence)
Conclusion
confidence in class Subjectconfidence - The confidence level.
public Relationship confidence(ConfidenceLevel confidence)
Conclusion
confidence in class Subjectconfidence - The confidence level.
public Relationship source(SourceReference sourceReference)
Conclusion
source in class SubjectsourceReference - The source reference.
public Relationship source(SourceDescription source)
Conclusion
source in class Subjectsource - The source description being referenced.
public Relationship note(Note note)
Conclusion
note in class Subjectnote - The note.
public Relationship analysis(ResourceReference analysis)
Conclusion
analysis in class Subjectanalysis - The analysis.
public Relationship attribution(Attribution attribution)
Conclusion
attribution in class Subjectattribution - The attribution.
public Relationship analysis(Document analysis)
Conclusion
analysis in class Subjectanalysis - The analysis.
public Relationship analysis(URI analysis)
Conclusion
analysis in class Subjectanalysis - The analysis.
public Relationship extracted(Boolean extracted)
Subject
extracted in class Subjectextracted - The extracted flag.
public Relationship identifier(Identifier identifier)
Subject
identifier in class Subjectidentifier - The identifier.
public Relationship evidence(EvidenceReference evidence)
Subject
evidence in class Subjectevidence - The evidence reference.
public Relationship evidence(Relationship evidence)
public Relationship media(SourceReference media)
Subject
media in class Subjectmedia - The media reference.
public Relationship media(SourceDescription media)
Subject
media in class Subjectmedia - The media reference.
public Relationship sortKey(String sortKey)
Conclusion
sortKey in class SubjectsortKey - The sort key.
public URI getType()
public void setType(URI type)
type - The type of this relationship.public Relationship type(URI type)
type - The type.
public Relationship type(RelationshipType type)
type - The type.
public RelationshipType getKnownType()
RelationshipType.OTHER if not known.
RelationshipType.OTHER if not known.public void setKnownType(RelationshipType type)
type - The relationship type.public ResourceReference getPerson1()
public void setPerson1(ResourceReference person1)
person1 - A reference to a person in the relationship. The name "person1" is used only to distinguish it from
the other person in this relationship and implies neither order nor role. When the relationship type
implies direction, it goes from "person1" to "person2".public Relationship person1(ResourceReference person1)
person1 - person 1.
public Relationship person1(Person person1)
person1 - person 1.
public ResourceReference getPerson2()
public void setPerson2(ResourceReference person2)
person2 - A reference to a person in the relationship. The name "person2" is used only to distinguish it from
the other person in this relationship and implies neither order nor role. When the relationship type
implies direction, it goes from "person1" to "person2".public Relationship person2(ResourceReference person2)
person2 - person 2.
public Relationship person2(Person person2)
person2 - person 2.
public List<Fact> getFacts()
getFacts in interface HasFactspublic void setFacts(List<Fact> facts)
setFacts in interface HasFactsfacts - The fact conclusions for the relationship.public Relationship fact(Fact fact)
fact - The fact.
public void addFact(Fact fact)
fact - The fact conclusion to be added.public List<Field> getFields()
getFields in interface HasFieldspublic void setFields(List<Field> fields)
setFields in interface HasFieldsfields - - List of fieldspublic Relationship field(Field field)
field - The field.
public void addField(Field field)
field - The field to be added.public void accept(GedcomxModelVisitor visitor)
visitor - The visitor.public void embed(Relationship relationship)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||