Package org.gedcomx.conclusion
Class Relationship
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Subject
org.gedcomx.conclusion.Relationship
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,HasFacts,SupportsLinks,HasFields,SupportsExtensionElements,ReferencesSources
A relationship between two or more persons.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidAdd a fact conclusion.voidAdd a reference to the record field values being used as evidence.analysis(ResourceReference analysis) Add a reference to the analysis for this conclusion.Add a reference to the analysis for this conclusion.Add a reference to the analysis for this conclusion.attribution(Attribution attribution) Build up this conclusion with attribution.confidence(URI confidence) Build up this conclusion with a confidence level.confidence(ConfidenceLevel confidence) Build up this conclusion with a confidence level.voidembed(Relationship relationship) evidence(EvidenceReference evidence) Build up this subject with an evidence reference.evidence(Relationship evidence) extensionElement(Object element) Build up this subject with an extracted flag.Build out this relationship with a fact.Build out this relationship with a field.getFacts()The fact conclusions for the relationship.Get the fields being used as evidence.The enum referencing the known type of the relationship, orRelationshipType.OTHERif not known.A reference to a person in the relationship.A reference to a person in the relationship.getType()The type of this relationship.Build up this object with an id.identifier(Identifier identifier) Build up this subject with an identifier.Build up this conclusion with a lang.Build up this data with a link.Build up this data with a link.media(SourceDescription media) Build up this subject with a media reference.media(SourceReference media) Build up this subject with a media reference.Build up this conclusion with a note.person1(ResourceReference person1) Build out this relationship with a reference to person 1.Build out this relationship with a reference to person 1.person2(ResourceReference person2) Build out this relationship with a reference to person 2.Build out this relationship with a reference to person 2.voidThe fact conclusions for the relationship.voidSet the list of fields being used as evidence.voidsetKnownType(RelationshipType type) Set the relationship type from a known enumeration of relationship types.voidsetPerson1(ResourceReference person1) A reference to a person in the relationship.voidsetPerson2(ResourceReference person2) A reference to a person in the relationship.voidThe type of this relationship.Build up this fact with a sort key.source(SourceDescription source) Build up this conclusion with a source reference.source(SourceReference sourceReference) Build up this conclusion with a source reference.Build out this relationship with a type.type(RelationshipType type) Build out this relationship with a type.Methods inherited from class org.gedcomx.conclusion.Subject
addEvidence, addIdentifier, addMedia, embed, evidence, getEvidence, getExtracted, getIdentifiers, getMedia, getPersistentId, identifiers, media, setEvidence, setExtracted, setIdentifiers, setMedia, setPersistentIdMethods inherited from class org.gedcomx.conclusion.Conclusion
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, notes, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, sources, toStringMethods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gedcomx.common.Attributable
getAttribution, setAttribution
-
Constructor Details
-
Relationship
public Relationship() -
Relationship
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id. -
extensionElement
- Overrides:
extensionElementin classSubject
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link. -
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link. -
lang
Description copied from class:ConclusionBuild up this conclusion with a lang. -
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classSubject- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classSubject- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference. -
source
Description copied from class:ConclusionBuild up this conclusion with a source reference. -
note
Description copied from class:ConclusionBuild up this conclusion with a note. -
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion. -
attribution
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classSubject- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion. -
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion. -
extracted
Description copied from class:SubjectBuild up this subject with an extracted flag. -
identifier
Description copied from class:SubjectBuild up this subject with an identifier.- Overrides:
identifierin classSubject- Parameters:
identifier- The identifier.- Returns:
- this.
-
evidence
Description copied from class:SubjectBuild up this subject with an evidence reference. -
evidence
-
media
Description copied from class:SubjectBuild up this subject with a media reference. -
media
Description copied from class:SubjectBuild up this subject with a media reference. -
sortKey
Description copied from class:ConclusionBuild up this fact with a sort key. -
getType
The type of this relationship.- Returns:
- The type of this relationship.
-
setType
The type of this relationship.- Parameters:
type- The type of this relationship.
-
type
Build out this relationship with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
Build out this relationship with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
The enum referencing the known type of the relationship, orRelationshipType.OTHERif not known.- Returns:
- The enum referencing the known type of the relationship, or
RelationshipType.OTHERif not known.
-
setKnownType
Set the relationship type from a known enumeration of relationship types.- Parameters:
type- The relationship type.
-
getPerson1
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".- Returns:
- 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".
-
setPerson1
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".- Parameters:
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".
-
person1
Build out this relationship with a reference to person 1.- Parameters:
person1- person 1.- Returns:
- this.
-
person1
Build out this relationship with a reference to person 1.- Parameters:
person1- person 1.- Returns:
- this.
-
getPerson2
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".- Returns:
- 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".
-
setPerson2
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".- Parameters:
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".
-
person2
Build out this relationship with a reference to person 2.- Parameters:
person2- person 2.- Returns:
- this.
-
person2
Build out this relationship with a reference to person 2.- Parameters:
person2- person 2.- Returns:
- this.
-
getFacts
The fact conclusions for the relationship. -
setFacts
The fact conclusions for the relationship. -
fact
Build out this relationship with a fact.- Parameters:
fact- The fact.- Returns:
- this
-
addFact
Add a fact conclusion.- Parameters:
fact- The fact conclusion to be added.
-
getFields
Get the fields being used as evidence. -
setFields
Set the list of fields being used as evidence. -
field
Build out this relationship with a field.- Parameters:
field- The field.- Returns:
- this.
-
addField
Add a reference to the record field values being used as evidence.- Parameters:
field- The field to be added.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
embed
-