Interface Event
- All Superinterfaces:
Browsable, Containable, Extensible, Identifiable, OsidObject, Temporal
An Event represents a span of time and an optional location.
-
Method Summary
Modifier and TypeMethodDescriptiongetDuration(DateTimeResolution units) Gets the duration of the event.getEventRecord(Type eventRecordType) Gets the event record corresponding to the givenEventrecordType.This method is used to retrieve an object implementing the requested record.Gets theLocation.Gets a descriptive location.Gets the locationId.Gets theIdof the event sponsors.Gets theSponsors.booleanTests if a location is associated with this event.booleanTests if a sponsor is associated with this event.booleanTests if this event is implicit.booleanTests if this event is an implclit event part of a recurring event.booleanTests if this event is an event calculated from an offset.booleanTests if this event is a superseding event.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Containable
isSequesteredModifier and TypeMethodDescriptionbooleanTests if thisContainableis sequestered in that it should not appear outside of its aggregated composition.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
isImplicit
boolean isImplicit()Tests if this event is implicit. An implicit event is one that is generated from an offset or recurring series.- Returns:
trueif this event is implicit,falseif explicitly defined- Compliance:
mandatory- This method must be implemented.
-
isInRecurringSeries
boolean isInRecurringSeries()Tests if this event is an implclit event part of a recurring event. If true,isImplicit()must also be true.- Returns:
trueif this event is part of a recurring series,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isSupersedingEvent
boolean isSupersedingEvent()Tests if this event is a superseding event. If true,isImplicit()must also be true.- Returns:
trueif this event is superseding event,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isOffsetEvent
boolean isOffsetEvent()Tests if this event is an event calculated from an offset. If true,isImplicit()must also be true.- Returns:
trueif this event is an offset event,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDuration
Gets the duration of the event.- Parameters:
units- the units of the duration- Returns:
- the duration
- Throws:
NullArgumentException-unitsisnull- Compliance:
mandatory- This method must be implemented.
-
getLocationDescription
DisplayText getLocationDescription()Gets a descriptive location.- Returns:
- the location
- Compliance:
mandatory- This method must be implemented.
-
hasLocation
boolean hasLocation()Tests if a location is associated with this event.- Returns:
trueif there is an associated location,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationId
Id getLocationId()Gets the locationId.- Returns:
- a location
Id - Throws:
IllegalStateException-hasLocation()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLocation
Gets theLocation.- Returns:
- a location
- Throws:
IllegalStateException-hasLocation()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasSponsors
boolean hasSponsors()Tests if a sponsor is associated with this event.- Returns:
trueif there is an associated sponsor.falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSponsorIds
IdList getSponsorIds()Gets theIdof the event sponsors.- Returns:
- the sponsor
Ids - Throws:
IllegalStateException-hasSponsors()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSponsors
Gets theSponsors.- Returns:
- the sponsors
- Throws:
IllegalStateException-hasSponsors()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getEventRecord
Gets the event record corresponding to the givenEventrecordType.This method is used to retrieve an object implementing the requested record. TheeventRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(eventRecordType)istrue.- Parameters:
eventRecordType- the type of the record to retrieve- Returns:
- the event record
- Throws:
NullArgumentException-eventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(eventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-