public interface Event extends OsidObject, Temporal, Containable
An Event
represents a span of time and an optional
location.
Modifier and Type | Method and Description |
---|---|
Duration |
getDuration(DateTimeResolution units)
Gets the duration of the event.
|
EventRecord |
getEventRecord(Type eventRecordType)
Gets the event record corresponding to the given
Event
record Type. |
Location |
getLocation()
Gets the
Location. |
DisplayText |
getLocationDescription()
Gets a descriptive location.
|
Id |
getLocationId()
Gets the location
Id . |
IdList |
getSponsorIds()
Gets the
Id of the event sponsors. |
ResourceList |
getSponsors()
Gets the
Sponsors. |
boolean |
hasLocation()
Tests if a location is associated with this event.
|
boolean |
hasSponsors()
Tests if a sponsor is associated with this event.
|
boolean |
isImplicit()
Tests if this event is implicit.
|
boolean |
isInRecurringSeries()
Tests if this event is an implclit event part of a recurring event.
|
boolean |
isOffsetEvent()
Tests if this event is an event calculated from an offset.
|
boolean |
isSupersedingEvent()
Tests if this event is a superseding event.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
isSequestered
boolean isImplicit()
true
if this event is implicit, false
if explicitly definedmandatory
- This method must be implemented. boolean isInRecurringSeries()
isImplicit()
must also be true. true
if this event is part of a recurring
series, false
otherwisemandatory
- This method must be implemented. boolean isSupersedingEvent()
isImplicit()
must also be true. true
if this event is superseding event,
false
otherwisemandatory
- This method must be implemented. boolean isOffsetEvent()
isImplicit()
must also be true. true
if this event is an offset event,
false
otherwisemandatory
- This method must be implemented. Duration getDuration(DateTimeResolution units)
units
- the units of the durationNullArgumentException
- units
is
null
mandatory
- This method must be implemented. DisplayText getLocationDescription()
mandatory
- This method must be implemented. boolean hasLocation()
true
if there is an associated location,
false
otherwisemandatory
- This method must be implemented. Id getLocationId()
Id
. Id
IllegalStateException
- hasLocation()
is
false
mandatory
- This method must be implemented. Location getLocation() throws OperationFailedException
Location.
IllegalStateException
- hasLocation()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasSponsors()
true
if there is an associated sponsor.
false
otherwisemandatory
- This method must be implemented. IdList getSponsorIds()
Id
of the event sponsors. Ids
IllegalStateException
- hasSponsors()
is
false
mandatory
- This method must be implemented. ResourceList getSponsors() throws OperationFailedException
Sponsors.
IllegalStateException
- hasSponsors()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. EventRecord getEventRecord(Type eventRecordType) throws OperationFailedException
Event
record Type.
This method is used to retrieve an object
implementing the requested record. The eventRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(eventRecordType)
is true
.eventRecordType
- the type of the record to retrieveNullArgumentException
- eventRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(eventRecordType)
is false
mandatory
- This method must be implemented.