Interface TimePeriod
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A TimePeriod represents a span of time in which recurring
events are expanded.
-
Method Summary
Modifier and TypeMethodDescriptiongetEnd()Gets the end time of the time period.Gets the exceptionIdsto this time period.Gets the exceptions to this time period.getStart()Gets the start time of the time period.getTimePeriodRecord(Type timePeriodRecordType) Gets the time period record corresponding to the givenTimePeriodrecordType.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 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.
-
Method Details
-
getStart
DateTime getStart()Gets the start time of the time period.- Returns:
- the start time
- Compliance:
mandatory- This method must be implemented.
-
getEnd
DateTime getEnd()Gets the end time of the time period.- Returns:
- the end time
- Compliance:
mandatory- This method must be implemented.
-
getExceptionIds
IdList getExceptionIds()Gets the exceptionIdsto this time period. Recurring events overlapping with these events do not appear in any recurring event for this time period.- Returns:
- list of exception event
Ids - Compliance:
mandatory- This method must be implemented.
-
getExceptions
Gets the exceptions to this time period. Recurring events overlapping with these events do not appear in any recurring event for this time period.- Returns:
- event exceptions
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTimePeriodRecord
Gets the time period record corresponding to the givenTimePeriodrecordType. This method is used to retrieve an object implementing the requested record. ThetimePeriodRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(timePeriodRecordType)istrue.- Parameters:
timePeriodRecordType- the type of the record to retrieve- Returns:
- the time period record
- Throws:
NullArgumentException-timePeriodRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(timePeriodRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-