Interface Term
- All Superinterfaces:
Browsable, Extensible, Federateable, Identifiable, OsidObject
A Term represents a period of time in which a course is
offered. This Term contains information on severel milestones that
may drive the behavior of schedules and registration. These periods of
time may be linked to the Term in the Calendaring OSID to effect
the behavior of the RecurringEvents .
-
Method Summary
Modifier and TypeMethodDescriptionGets the add/drop date.Gets the end of classes.Gets the start of classes.Gets the close date when results of course offerings are finalized.Gets a display label for this term which may be less formal than the display name.Gets the add/drop date.Gets the end of the final exam period.Gets the start of the final exam period.Gets the open date when published offerings are finalized.Gets the end of the registration period.Gets the start of the registration period.getTermRecord(Type termRecordType) Gets the term record corresponding to the givenTermrecordType.This method is used to retrieve an object implementing the requested record.booleanTests if this term has an add/drop date.booleanTests if this term has a close date when results from course offerings are finalized.booleanTests if this term has a final eam period.booleanTests if this term has an open date when published offerings are finalized.booleanTests if this term has a registration period.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
-
getDisplayLabel
DisplayText getDisplayLabel()Gets a display label for this term which may be less formal than the display name.- Returns:
- the term label
- Compliance:
mandatory- This method must be implemented.
-
hasOpenDate
boolean hasOpenDate()Tests if this term has an open date when published offerings are finalized.- Returns:
trueif there is an open date associated with this term,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOpenDate
DateTime getOpenDate()Gets the open date when published offerings are finalized.- Returns:
- the open date
- Throws:
IllegalStateException-hasOpenDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasRegistrationPeriod
boolean hasRegistrationPeriod()Tests if this term has a registration period.- Returns:
trueif there is a registration period associated with this term,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRegistrationStart
DateTime getRegistrationStart()Gets the start of the registration period.- Returns:
- the start date
- Throws:
IllegalStateException-hasRegistrationPeriod()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRegistrationEnd
DateTime getRegistrationEnd()Gets the end of the registration period.- Returns:
- the end date
- Throws:
IllegalStateException-hasRegistrationPeriod()isfalse- Compliance:
mandatory- This method must be implemented.
-
getClassesStart
DateTime getClassesStart()Gets the start of classes.- Returns:
- the start date
- Compliance:
mandatory- This method must be implemented.
-
getClassesEnd
DateTime getClassesEnd()Gets the end of classes.- Returns:
- the end date
- Compliance:
mandatory- This method must be implemented.
-
hasAddDropDate
boolean hasAddDropDate()Tests if this term has an add/drop date.- Returns:
trueif there is an add/drop date associated with this term,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAddDate
DateTime getAddDate()Gets the add/drop date.- Returns:
- the add/drop date
- Throws:
IllegalStateException-hasAddDropDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getDropDate
DateTime getDropDate()Gets the add/drop date.- Returns:
- the add/drop date
- Throws:
IllegalStateException-hasAddDropDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasFinalExamPeriod
boolean hasFinalExamPeriod()Tests if this term has a final eam period.- Returns:
trueif there is a final exam period associated with this term,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getFinalExamStart
DateTime getFinalExamStart()Gets the start of the final exam period.- Returns:
- the start date
- Throws:
IllegalStateException-hasFinalExamPeriod()isfalse- Compliance:
mandatory- This method must be implemented.
-
getFinalExamEnd
DateTime getFinalExamEnd()Gets the end of the final exam period.- Returns:
- the end date
- Throws:
IllegalStateException-hasFinalExamPeriod()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasCloseDate
boolean hasCloseDate()Tests if this term has a close date when results from course offerings are finalized.- Returns:
trueif there is a close date associated with this term,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCloseDate
DateTime getCloseDate()Gets the close date when results of course offerings are finalized.- Returns:
- the close date
- Throws:
IllegalStateException-hasCloseDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getTermRecord
Gets the term record corresponding to the givenTermrecordType.This method is used to retrieve an object implementing the requested record. ThetermRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(termRecordType)istrue.- Parameters:
termRecordType- the type of term record to retrieve- Returns:
- the term record
- Throws:
NullArgumentException-termRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(termRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-