OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.OffsetEvent
Implementsosid.OsidRule
Used Byosid.calendaring.OffsetEventAdminSession
osid.calendaring.OffsetEventList
osid.calendaring.OffsetEventLookupSession
Description

An OffsetEvent describes events that are relative to other events. OffsetEvents may have a fixed or rubber start date as well as a fixed or rubber end date. A rubber start and end date has a variable duration based on the starting and ending milestones. An OffsetEvent with a fixed start date and a fixed duration behaves like a normal fixed Event.

Creating an OffsetEvent produces an Event that is based on these offset rules.

MethodhasFixedStartTime
Description

Tests if this offset event is based on a fixed start time.

Returnboolean true if this offset is based on a fixed start time, false otherwise
Compliancemandatory This method must be implemented.
MethodgetFixedStartTime
Description

Gets the fixed start time for this event.

Returnosid.calendaring.DateTime the fixed start time
ErrorsILLEGAL_STATE hasFixedStartIme() is false
Compliancemandatory This method must be implemented.
MethodgetStartReferenceEventId
Description

Gets the Event Id to which the start of this event is offset.

Returnosid.id.Id the relative event Id
ErrorsILLEGAL_STATE hasFixedStartTime() is true
Compliancemandatory This method must be implemented.
MethodgetStartReferenceEvent
Description

Gets the Event to which the start of this event is offset.

Returnosid.calendaring.Event the relative event
ErrorsILLEGAL_STATE hasFixedStartTime() is true
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasFixedStartOffset
Description

Tests if this offset start time based on a fixed period of time.

Returnboolean true if this offset is based on a fixed period of time, false otherwise
ErrorsILLEGAL_STATE hasFixedStartTime() is true
Compliancemandatory This method must be implemented.
MethodgetFixedStartOffset
Description

Gets the fixed starting time offset.

Returnosid.calendaring.Duration the offset
ErrorsILLEGAL_STATE hasFixedStartOffset() is false
Compliancemandatory This method must be implemented.
MethodhasRelativeWeekdayStartOffset
Description

Tests if this starting time offset is a based on a relative weekday.

Returnboolean true if this offset is based on a relative weekday, false otherwise
ErrorsILLEGAL_STATE hasFixedStartOffset() is true
Compliancemandatory This method must be implemented.
MethodgetRelativeWeekdayStartOffset
Description

Gets the starting offset as the nth weekday from the relative event. Zero is no offset.

Returninteger the offset
ErrorsILLEGAL_STATE hasRelativeWeekdayStartOffset() is false
Compliancemandatory This method must be implemented.
MethodgetRelativeStartWeekday
Description

Gets the starting weekday number. The weekday is based on the calendar type. On the Gregorian calendar, 0 is Sunday.

Returncardinal the weekday number
ErrorsILLEGAL_STATE hasRelativeWeekdayStartOffset() is false
Compliancemandatory This method must be implemented.
MethodhasFixedDuration
Description

Tests if this offset event is based on a fixed duration.

Returnboolean true if this offset is based on a fixed duration, false otherwise
Compliancemandatory This method must be implemented.
MethodgetFixedDuration
Description

Gets the duration of the offset event.

Parametersosid.calendaring.DateTimeResolutionunits the units of the duration
Returnosid.calendaring.Duration the duration
ErrorsILLEGAL_STATE hasFixedDuration() is false
NULL_ARGUMENT units is null
Compliancemandatory This method must be implemented.
MethodgetEndReferenceEventId
Description

Gets the Event Id to which the end of this event is offset.

Returnosid.id.Id the relative event Id
ErrorsILLEGAL_STATE hasFixedDuration() is true
Compliancemandatory This method must be implemented.
MethodgetEndReferenceEvent
Description

Gets the Event to which the end of this event is offset.

Returnosid.calendaring.Event the relative event
ErrorsILLEGAL_STATE hasFixedDuration() is true
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasFixedEndOffset
Description

Tests if this offset end time based on a fixed period of time.

Returnboolean true if this offset is based on a fixed period of time, false otherwise
ErrorsILLEGAL_STATE hasFixedDuration() is true
Compliancemandatory This method must be implemented.
MethodgetFixedEndOffset
Description

Gets the fixed ending time offset.

Returnosid.calendaring.Duration the offset
ErrorsILLEGAL_STATE hasFixedEndOffset() is false
Compliancemandatory This method must be implemented.
MethodhasRelativeWeekdayEndOffset
Description

Tests if this ending time offset is a based on a relative weekday.

Returnboolean true if this offset is based on a relative weekday, false otherwise
ErrorsILLEGAL_STATE hasFixedEndOffset() is true
Compliancemandatory This method must be implemented.
MethodgetRelativeWeekdayEndOffset
Description

Gets the ending offset as the nth weekday from the relative event. Zero is no offset.

Returninteger the offset
ErrorsILLEGAL_STATE hasRelativeWeekdayEndOffset() is false
Compliancemandatory This method must be implemented.
MethodgetRelativeEndWeekday
Description

Gets the ending weekday number. The weekday is based on the calendar type. On the Gregorian calendar, 0 is Sunday.

Returncardinal the weekday number
ErrorsILLEGAL_STATE hasRelativeWeekdayEndOffset() is false
Compliancemandatory This method must be implemented.
MethodgetLocationDescription
Description

Gets a descriptive location.

Returnosid.locale.DisplayText the location
Compliancemandatory This method must be implemented.
MethodhasLocation
Description

Tests if a location is associated with this event.

Returnboolean true if there is an associated location, false otherwise
Compliancemandatory This method must be implemented.
MethodgetLocationId
Description

Gets the location Id.

Returnosid.id.Id a location Id
ErrorsILLEGAL_STATE hasLocation() is false
Compliancemandatory This method must be implemented.
MethodgetLocation
Description

Gets the Location.

Returnosid.mapping.Location a location
ErrorsILLEGAL_STATE hasLocation() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasSponsors
Description

Tests if a sponsor is associated with this event.

Returnboolean true if there is an associated sponsor. false otherwise
Compliancemandatory This method must be implemented.
MethodgetSponsorIds
Description

Gets the Id of the event sponsors.

Returnosid.id.IdList the sponsor Ids
ErrorsILLEGAL_STATE hasSponsors() is false
Compliancemandatory This method must be implemented.
MethodgetSponsors
Description

Gets the Sponsors.

Returnosid.resource.ResourceList the sponsors
ErrorsILLEGAL_STATE hasSponsors() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetOffsetEventRecord
Description

Gets the offset event record corresponding to the given OffsetEvent record Type. This method is used to retrieve an object implementing the requested record. The offsetEventRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(offsetEventRecordType) is true.

Parametersosid.type.TypeoffsetEventRecordType the type of the record to retrieve
Returnosid.calendaring.records.OffsetEventRecord the offset event record
ErrorsNULL_ARGUMENT offsetEventRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(offsetEventRecordType) is false
Compliancemandatory This method must be implemented.