Package org.gedcomx.conclusion
Class Event
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,HasDateAndPlace,SupportsLinks,SupportsExtensionElements,ReferencesSources
A historical 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.voidAdd a role to the list of roles played in this event.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 with a date.voidEmbed another event.evidence(EvidenceReference evidence) Build up this subject with an evidence reference.extensionElement(Object element) Build up this subject with an extracted flag.getDate()The date of this event.The enum referencing the known type of the event, orEventType.OTHERif not known.getPlace()The place of this event.getRoles()The roles played in this event.getType()The type of the event.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.place(PlaceReference place) Build up this event with a place.Build up this event with a role.roles()Create a stream for the roles of this event.voidThe date of this event.voidsetKnownType(EventType knownType) Set the type of this event from a known enumeration of event types.voidsetPlace(PlaceReference place) The place of this event.voidThe roles played in this event.voidThe type of the event.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 up this event with a type.Build up this event 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
-
Event
public Event()Create an event. -
Event
Create an event with the passed in type and values.- Parameters:
EventType- the event type.
-
Event
Create a date/place event with the passed in type and values.- Parameters:
EventType- the event type.date- The date of applicability of this event.place- The place of applicability of this event.
-
Event
-
-
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. -
sortKey
Description copied from class:ConclusionBuild up this fact with a sort key. -
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. -
getType
The type of the event.- Returns:
- The type of the event.
-
setType
The type of the event.- Parameters:
type- The type of the event.
-
type
Build up this event with a type.- Parameters:
type- The type of the event.- Returns:
- this.
-
type
Build up this event with a type.- Parameters:
type- The type of the event.- Returns:
- this.
-
getKnownType
The enum referencing the known type of the event, orEventType.OTHERif not known.- Returns:
- The enum referencing the known type of the event, or
EventType.OTHERif not known.
-
setKnownType
Set the type of this event from a known enumeration of event types.- Parameters:
knownType- the event type.
-
getDate
The date of this event.- Specified by:
getDatein interfaceHasDateAndPlace- Returns:
- The date of this event.
-
setDate
The date of this event.- Specified by:
setDatein interfaceHasDateAndPlace- Parameters:
date- The date of this event.
-
date
Build up this event with a date.- Parameters:
date- The date.- Returns:
- this.
-
getPlace
The place of this event.- Specified by:
getPlacein interfaceHasDateAndPlace- Returns:
- The place of this event.
-
setPlace
The place of this event.- Specified by:
setPlacein interfaceHasDateAndPlace- Parameters:
place- The place of this event.
-
place
Build up this event with a place.- Parameters:
place- The place.- Returns:
- this.
-
roles
Create a stream for the roles of this event.- Returns:
- a stream for the roles of this event.
-
getRoles
The roles played in this event.- Returns:
- The roles played in this event.
-
setRoles
The roles played in this event.- Parameters:
roles- The roles played in this event.
-
role
Build up this event with a role.- Parameters:
role- The role.- Returns:
- this.
-
addRole
Add a role to the list of roles played in this event.- Parameters:
role- The role to be added.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
embed
Embed another event.- Parameters:
event- The event to embed.
-