|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Subject
org.gedcomx.conclusion.Event
public class Event
A historical event.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class org.gedcomx.conclusion.Subject |
|---|
addEvidence, addIdentifier, addMedia, embed, getEvidence, getExtracted, getIdentifiers, getMedia, getPersistentId, setEvidence, setExtracted, setIdentifiers, setMedia, setPersistentId |
| Methods inherited from class org.gedcomx.conclusion.Conclusion |
|---|
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, toString |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gedcomx.common.Attributable |
|---|
getAttribution, setAttribution |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public Event id(String id)
ExtensibleData
id in class Subjectid - The id.
public Event link(String rel,
URI href)
HypermediaEnabledData
link in class Subjectrel - The rel.href - The href.
public Event link(Link link)
HypermediaEnabledData
link in class Subjectlink - The link.
public Event lang(String lang)
Conclusion
lang in class Subjectlang - The lang.
public Event confidence(URI confidence)
Conclusion
confidence in class Subjectconfidence - The confidence level.
public Event confidence(ConfidenceLevel confidence)
Conclusion
confidence in class Subjectconfidence - The confidence level.
public Event source(SourceReference sourceReference)
Conclusion
source in class SubjectsourceReference - The source reference.
public Event source(SourceDescription source)
Conclusion
source in class Subjectsource - The source description being referenced.
public Event note(Note note)
Conclusion
note in class Subjectnote - The note.
public Event analysis(ResourceReference analysis)
Conclusion
analysis in class Subjectanalysis - The analysis.
public Event attribution(Attribution attribution)
Conclusion
attribution in class Subjectattribution - The attribution.
public Event analysis(Document analysis)
Conclusion
analysis in class Subjectanalysis - The analysis.
public Event analysis(URI analysis)
Conclusion
analysis in class Subjectanalysis - The analysis.
public Event extracted(Boolean extracted)
Subject
extracted in class Subjectextracted - The extracted flag.
public Event identifier(Identifier identifier)
Subject
identifier in class Subjectidentifier - The identifier.
public Event evidence(EvidenceReference evidence)
Subject
evidence in class Subjectevidence - The evidence reference.
public Event sortKey(String sortKey)
Conclusion
sortKey in class SubjectsortKey - The sort key.
public Event evidence(Event evidence)
public Event media(SourceReference media)
Subject
media in class Subjectmedia - The media reference.
public Event media(SourceDescription media)
Subject
media in class Subjectmedia - The media reference.
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||