public class Event extends Subject implements HasDateAndPlace
extensionElements, transientProperties| Constructor and Description |
|---|
Event()
Create an event.
|
Event(EventType EventType)
Create an event with the passed in type and values.
|
Event(EventType EventType,
Date date,
PlaceReference place)
Create a date/place event with the passed in type and values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor.
|
void |
addRole(EventRole role)
Add a role to the list of roles played in this event.
|
Event |
analysis(Document analysis)
Add a reference to the analysis for this conclusion.
|
Event |
analysis(ResourceReference analysis)
Add a reference to the analysis for this conclusion.
|
Event |
analysis(URI analysis)
Add a reference to the analysis for this conclusion.
|
Event |
attribution(Attribution attribution)
Build up this conclusion with attribution.
|
Event |
confidence(ConfidenceLevel confidence)
Build up this conclusion with a confidence level.
|
Event |
confidence(URI confidence)
Build up this conclusion with a confidence level.
|
Event |
date(Date date)
Build up this event with a date.
|
void |
embed(Event event)
Embed another event.
|
Event |
evidence(Event evidence) |
Event |
evidence(EvidenceReference evidence)
Build up this subject with an evidence reference.
|
Event |
extensionElement(Object element) |
Event |
extracted(Boolean extracted)
Build up this subject with an extracted flag.
|
Date |
getDate()
The date of this event.
|
EventType |
getKnownType()
The enum referencing the known type of the event, or
EventType.OTHER if not known. |
PlaceReference |
getPlace()
The place of this event.
|
List<EventRole> |
getRoles()
The roles played in this event.
|
URI |
getType()
The type of the event.
|
Event |
id(String id)
Build up this object with an id.
|
Event |
identifier(Identifier identifier)
Build up this subject with an identifier.
|
Event |
lang(String lang)
Build up this conclusion with a lang.
|
Event |
link(Link link)
Build up this data with a link.
|
Event |
link(String rel,
URI href)
Build up this data with a link.
|
Event |
media(SourceDescription media)
Build up this subject with a media reference.
|
Event |
media(SourceReference media)
Build up this subject with a media reference.
|
Event |
note(Note note)
Build up this conclusion with a note.
|
Event |
place(PlaceReference place)
Build up this event with a place.
|
Event |
role(EventRole role)
Build up this event with a role.
|
void |
setDate(Date date)
The date of this event.
|
void |
setKnownType(EventType knownType)
Set the type of this event from a known enumeration of event types.
|
void |
setPlace(PlaceReference place)
The place of this event.
|
void |
setRoles(List<EventRole> roles)
The roles played in this event.
|
void |
setType(URI type)
The type of the event.
|
Event |
sortKey(String sortKey)
Build up this fact with a sort key.
|
Event |
source(SourceDescription source)
Build up this conclusion with a source reference.
|
Event |
source(SourceReference sourceReference)
Build up this conclusion with a source reference.
|
Event |
type(EventType type)
Build up this event with a type.
|
Event |
type(URI type)
Build up this event 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 Event()
public Event(EventType EventType)
EventType - the event type.public Event(EventType EventType, Date date, PlaceReference place)
EventType - the event type.date - The date of applicability of this event.place - The place of applicability of this event.public Event id(String id)
ExtensibleDatapublic Event extensionElement(Object element)
extensionElement in class Subjectpublic Event link(String rel, URI href)
HypermediaEnabledDatapublic Event link(Link link)
HypermediaEnabledDatapublic Event lang(String lang)
Conclusionpublic Event confidence(URI confidence)
Conclusionconfidence in class Subjectconfidence - The confidence level.public Event confidence(ConfidenceLevel confidence)
Conclusionconfidence in class Subjectconfidence - The confidence level.public Event source(SourceReference sourceReference)
Conclusionpublic Event source(SourceDescription source)
Conclusionpublic Event note(Note note)
Conclusionpublic Event analysis(ResourceReference analysis)
Conclusionpublic Event attribution(Attribution attribution)
Conclusionattribution in class Subjectattribution - The attribution.public Event analysis(Document analysis)
Conclusionpublic Event analysis(URI analysis)
Conclusionpublic Event extracted(Boolean extracted)
Subjectpublic Event identifier(Identifier identifier)
Subjectidentifier in class Subjectidentifier - The identifier.public Event evidence(EvidenceReference evidence)
Subjectpublic Event sortKey(String sortKey)
Conclusionpublic Event media(SourceReference media)
Subjectpublic Event media(SourceDescription media)
Subjectpublic URI getType()
public void setType(URI type)
type - The type of the event.public Event type(URI type)
type - The type of the event.public Event type(EventType type)
type - The type of the event.public EventType getKnownType()
EventType.OTHER if not known.EventType.OTHER if not known.public void setKnownType(EventType knownType)
knownType - the event type.public Date getDate()
getDate in interface HasDateAndPlacepublic void setDate(Date date)
setDate in interface HasDateAndPlacedate - The date of this event.public Event date(Date date)
date - The date.public PlaceReference getPlace()
getPlace in interface HasDateAndPlacepublic void setPlace(PlaceReference place)
setPlace in interface HasDateAndPlaceplace - The place of this event.public Event place(PlaceReference place)
place - The place.public List<EventRole> getRoles()
public void setRoles(List<EventRole> roles)
roles - The roles played in this event.public Event role(EventRole role)
role - The role.public void addRole(EventRole role)
role - The role to be added.public void accept(GedcomxModelVisitor visitor)
visitor - The visitor.public void embed(Event event)
event - The event to embed.Copyright © 2016. All rights reserved.