public class Relationship extends Subject implements HasFacts, HasFields
extensionElements, transientProperties| Constructor and Description |
|---|
Relationship() |
| Modifier and Type | Method and Description |
|---|---|
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 |
extensionElement(Object element) |
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.
|
addEvidence, addIdentifier, addMedia, embed, getEvidence, getExtracted, getIdentifiers, getMedia, getPersistentId, setEvidence, setExtracted, setIdentifiers, setMedia, setPersistentIdaddNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, toStringaddLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksaddExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribution, setAttributionpublic Relationship id(String id)
ExtensibleDatapublic Relationship extensionElement(Object element)
extensionElement in class Subjectpublic Relationship link(String rel, URI href)
HypermediaEnabledDatapublic Relationship link(Link link)
HypermediaEnabledDatapublic Relationship lang(String lang)
Conclusionpublic Relationship confidence(URI confidence)
Conclusionconfidence in class Subjectconfidence - The confidence level.public Relationship confidence(ConfidenceLevel confidence)
Conclusionconfidence in class Subjectconfidence - The confidence level.public Relationship source(SourceReference sourceReference)
Conclusionpublic Relationship source(SourceDescription source)
Conclusionpublic Relationship note(Note note)
Conclusionpublic Relationship analysis(ResourceReference analysis)
Conclusionpublic Relationship attribution(Attribution attribution)
Conclusionattribution in class Subjectattribution - The attribution.public Relationship analysis(Document analysis)
Conclusionpublic Relationship analysis(URI analysis)
Conclusionpublic Relationship extracted(Boolean extracted)
Subjectpublic Relationship identifier(Identifier identifier)
Subjectidentifier in class Subjectidentifier - The identifier.public Relationship evidence(EvidenceReference evidence)
Subjectpublic Relationship evidence(Relationship evidence)
public Relationship media(SourceReference media)
Subjectpublic Relationship media(SourceDescription media)
Subjectpublic Relationship sortKey(String sortKey)
Conclusionpublic 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 Relationship fact(Fact fact)
fact - The fact.public void addFact(Fact fact)
fact - The fact conclusion to be added.public 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)
Copyright © 2016. All rights reserved.