Package org.gedcomx.conclusion
Class EventRole
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.EventRole
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,SupportsExtensionElements,ReferencesSources
A role that a specific person plays in an event.
- 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.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.Build up this event role with details.extensionElement(Object element) Details about the role of the person in the event.The enum referencing the known role type, orEventRoleType.OTHERif not known.Reference to the person playing the role in the event.getType()The role type.Build up this object with an id.Build up this conclusion with a lang.Build up this data with a link.Build up this data with a link.Build up this conclusion with a note.person(ResourceReference person) Build up this event role with a person.Build up this event role with a person.voidsetDetails(String details) Details about the role of the person in the event.voidsetKnownType(EventRoleType knownType) Set the role type from an enumeration of known role types.voidsetPerson(ResourceReference person) Reference to the person playing the role in the event.voidThe role type.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.toString()Provide a simple toString() method.Build up this role with a type.type(EventRoleType type) Build up this role with a type.Methods 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, sourcesMethods 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, setTransientProperty
-
Constructor Details
-
EventRole
public EventRole() -
EventRole
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classConclusion- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classConclusion
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
link- The link.- Returns:
- this.
-
lang
Description copied from class:ConclusionBuild up this conclusion with a lang.- Overrides:
langin classConclusion- Parameters:
lang- The lang.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
sourceReference- The source reference.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
source- The source description being referenced.- Returns:
- this.
-
note
Description copied from class:ConclusionBuild up this conclusion with a note.- Overrides:
notein classConclusion- Parameters:
note- The note.- Returns:
- this.
-
attribution
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classConclusion- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
sortKey
Description copied from class:ConclusionBuild up this fact with a sort key.- Overrides:
sortKeyin classConclusion- Parameters:
sortKey- The sort key.- Returns:
- this.
-
getPerson
Reference to the person playing the role in the event.- Returns:
- Reference to the person playing the role in the event.
-
setPerson
Reference to the person playing the role in the event.- Parameters:
person- Reference to the person playing the role in the event.
-
person
Build up this event role with a person.- Parameters:
person- The person.- Returns:
- this.
-
person
Build up this event role with a person.- Parameters:
person- The person.- Returns:
- this.
-
getType
The role type.- Returns:
- The role type.
-
setType
The role type.- Parameters:
type- The role type.
-
type
Build up this role with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
Build up this role with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
The enum referencing the known role type, orEventRoleType.OTHERif not known.- Returns:
- The enum referencing the known role type, or
EventRoleType.OTHERif not known.
-
setKnownType
Set the role type from an enumeration of known role types.- Parameters:
knownType- The role type.
-
getDetails
Details about the role of the person in the event.- Returns:
- Details about the role of the person in the event.
-
setDetails
Details about the role of the person in the event.- Parameters:
details- Details about the role of the person in the event.
-
details
Build up this event role with details.- Parameters:
details- The details.- Returns:
- this.
-
toString
Provide a simple toString() method.- Overrides:
toStringin classConclusion
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-