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
public class EventRole extends Conclusion
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 Constructor Description EventRole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(GedcomxModelVisitor visitor)Accept a visitor.EventRoleanalysis(ResourceReference analysis)Add a reference to the analysis for this conclusion.EventRoleanalysis(URI analysis)Add a reference to the analysis for this conclusion.EventRoleanalysis(Document analysis)Add a reference to the analysis for this conclusion.EventRoleattribution(Attribution attribution)Build up this conclusion with attribution.EventRoleconfidence(URI confidence)Build up this conclusion with a confidence level.EventRoleconfidence(ConfidenceLevel confidence)Build up this conclusion with a confidence level.EventRoledetails(String details)Build up this event role with details.EventRoleextensionElement(Object element)StringgetDetails()Details about the role of the person in the event.EventRoleTypegetKnownType()The enum referencing the known role type, orEventRoleType.OTHERif not known.ResourceReferencegetPerson()Reference to the person playing the role in the event.URIgetType()The role type.EventRoleid(String id)Build up this object with an id.EventRolelang(String lang)Build up this conclusion with a lang.EventRolelink(String rel, URI href)Build up this data with a link.EventRolelink(Link link)Build up this data with a link.EventRolenote(Note note)Build up this conclusion with a note.EventRoleperson(ResourceReference person)Build up this event role with a person.EventRoleperson(Person 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.voidsetType(URI type)The role type.EventRolesortKey(String sortKey)Build up this fact with a sort key.EventRolesource(SourceDescription source)Build up this conclusion with a source reference.EventRolesource(SourceReference sourceReference)Build up this conclusion with a source reference.StringtoString()Provide a simple toString() method.EventRoletype(URI type)Build up this role with a type.EventRoletype(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, sources
-
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
-
-
-
-
Method Detail
-
id
public EventRole id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classConclusion- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public EventRole extensionElement(Object element)
- Overrides:
extensionElementin classConclusion
-
link
public EventRole link(String rel, URI href)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
public EventRole link(Link link)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
link- The link.- Returns:
- this.
-
lang
public EventRole lang(String lang)
Description copied from class:ConclusionBuild up this conclusion with a lang.- Overrides:
langin classConclusion- Parameters:
lang- The lang.- Returns:
- this.
-
confidence
public EventRole confidence(URI confidence)
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
public EventRole confidence(ConfidenceLevel confidence)
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
public EventRole source(SourceReference sourceReference)
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
sourceReference- The source reference.- Returns:
- this.
-
source
public EventRole source(SourceDescription 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
public EventRole note(Note note)
Description copied from class:ConclusionBuild up this conclusion with a note.- Overrides:
notein classConclusion- Parameters:
note- The note.- Returns:
- this.
-
attribution
public EventRole attribution(Attribution attribution)
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classConclusion- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
public EventRole analysis(ResourceReference analysis)
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
public EventRole analysis(URI analysis)
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
public EventRole analysis(Document analysis)
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
sortKey
public EventRole sortKey(String sortKey)
Description copied from class:ConclusionBuild up this fact with a sort key.- Overrides:
sortKeyin classConclusion- Parameters:
sortKey- The sort key.- Returns:
- this.
-
getPerson
public ResourceReference getPerson()
Reference to the person playing the role in the event.- Returns:
- Reference to the person playing the role in the event.
-
setPerson
public void setPerson(ResourceReference person)
Reference to the person playing the role in the event.- Parameters:
person- Reference to the person playing the role in the event.
-
person
public EventRole person(ResourceReference person)
Build up this event role with a person.- Parameters:
person- The person.- Returns:
- this.
-
person
public EventRole person(Person person)
Build up this event role with a person.- Parameters:
person- The person.- Returns:
- this.
-
getType
public URI getType()
The role type.- Returns:
- The role type.
-
setType
public void setType(URI type)
The role type.- Parameters:
type- The role type.
-
type
public EventRole type(URI type)
Build up this role with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
public EventRole type(EventRoleType type)
Build up this role with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
public EventRoleType 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
public void setKnownType(EventRoleType knownType)
Set the role type from an enumeration of known role types.- Parameters:
knownType- The role type.
-
getDetails
public String getDetails()
Details about the role of the person in the event.- Returns:
- Details about the role of the person in the event.
-
setDetails
public void setDetails(String details)
Details about the role of the person in the event.- Parameters:
details- Details about the role of the person in the event.
-
details
public EventRole details(String details)
Build up this event role with details.- Parameters:
details- The details.- Returns:
- this.
-
toString
public String toString()
Provide a simple toString() method.- Overrides:
toStringin classConclusion
-
accept
public void accept(GedcomxModelVisitor visitor)
Accept a visitor.- Parameters:
visitor- The visitor.
-
-