OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.TermQuery
Implementsosid.OsidObjectQuery
osid.OsidFederateableQuery
Description

This is the query for searching terms. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchDisplayLabel
Description

Adds a display label for this query.

Parametersstringlabellabel string to match
osid.type.TypestringMatchTypethe label match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT label not of stringMatchType
NULL_ARGUMENT label or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDisplayLabel
Description

Matches a display label that has any value.

Parametersbooleanmatch true to match courses with any label, false to match assets with no title
CompliancemandatoryThis method must be implemented.
MethodclearDisplayLabelTerms
Description

Clears the display label query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOpenDate
Description

Matches the open date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyOpenDate
Description

Matches a term that has any open date assigned.

Parametersbooleanmatch true to match terms with any open date, false to match terms with no open date
CompliancemandatoryThis method must be implemented.
MethodclearOpenDateTerms
Description

Clears the open date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRegistrationStart
Description

Matches the registration start date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRegistrationStart
Description

Matches a term that has any registration start date assigned.

Parametersbooleanmatch true to match terms with any registration start date, false to match terms with no registration start date
CompliancemandatoryThis method must be implemented.
MethodclearRegistrationStartTerms
Description

Clears the registration start date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRegistrationEnd
Description

Matches the registration end date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRegistrationEnd
Description

Matches a term that has any registration end date assigned.

Parametersbooleanmatch true to match terms with any registration end date, false to match terms with no registration end date
CompliancemandatoryThis method must be implemented.
MethodclearRegistrationEndTerms
Description

Clears the registration end date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRegistrationPeriod
Description

Matches the registration period that incudes the given date.

Parametersosid.calendaring.DateTimedatea date
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRegistrationPeriodTerms
Description

Clears the registration period query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRegistrationDuration
Description

Matches the registration period duration between the given range inclusive.

Parametersosid.calendaring.Durationlowlow duration range
osid.calendaring.Durationhighhigh duration range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodclearRegistrationDurationTerms
Description

Clears the registration period duration query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchClassesStart
Description

Matches the class start date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyClassesStart
Description

Matches a term that has any class start date assigned.

Parametersbooleanmatch true to match terms with any class start date, false to match terms with no class start date
CompliancemandatoryThis method must be implemented.
MethodclearClassesStartTerms
Description

Clears the class start date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchClassesEnd
Description

Matches the class end date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyClassesEnd
Description

Matches a term that has any class end date assigned.

Parametersbooleanmatch true to match terms with any class end date, false to match terms with no class end date
CompliancemandatoryThis method must be implemented.
MethodclearClassesEndTerms
Description

Clears the class end date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchClassesPeriod
Description

Matches the class period that incudes the given date.

Parametersosid.calendaring.DateTimedatea date
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearClassesPeriodTerms
Description

Clears the class period query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchClassesDuration
Description

Matches the classes period duration between the given range inclusive.

Parametersosid.calendaring.Durationlowlow duration range
osid.calendaring.Durationhighhigh duration range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodclearClassesDurationTerms
Description

Clears the classes period duration query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddDate
Description

Matches the add date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAddDate
Description

Matches a term that has any add date assigned.

Parametersbooleanmatch true to match terms with any add date, false to match terms with no add/drop date
CompliancemandatoryThis method must be implemented.
MethodclearAddDateTerms
Description

Clears the add date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDropDate
Description

Matches the drop date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDropDate
Description

Matches a term that has any drop date assigned.

Parametersbooleanmatch true to match terms with any drop date, false to match terms with no add/drop date
CompliancemandatoryThis method must be implemented.
MethodclearDropDateTerms
Description

Clears the drop date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFinalExamStart
Description

Matches the final exam period start date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyFinalExamStart
Description

Matches a term that has any final exam period start date assigned.

Parametersbooleanmatch true to match terms with any final exam start date, false to match terms with no final exam start date
CompliancemandatoryThis method must be implemented.
MethodclearFinalExamStartTerms
Description

Clears the final exam start date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFinalExamEnd
Description

Matches the final exam period end date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyFinalExamEnd
Description

Matches a term that has any final exam period end date assigned.

Parametersbooleanmatch true to match terms with any final exam end date, false to match terms with no final exam end date
CompliancemandatoryThis method must be implemented.
MethodclearFinalExamEndTerms
Description

Clears the final exam period end date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFinalExamPeriod
Description

Matches the final exam period that incudes the given date.

Parametersosid.calendaring.DateTimedatea date
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearFinalExamPeriodTerms
Description

Clears the final exam period query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFinalExamDuration
Description

Matches the final exam period duration between the given range inclusive.

Parametersosid.calendaring.Durationlowlow duration range
osid.calendaring.Durationhighhigh duration range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodclearFinalExamDurationTerms
Description

Clears the final exam period duration query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCloseDate
Description

Matches the close date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCloseDate
Description

Matches a term that has any close date assigned.

Parametersbooleanmatch true to match terms with any close date, false to match terms with no close date
CompliancemandatoryThis method must be implemented.
MethodclearCloseDateTerms
Description

Clears the close date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorTermId
Description

Sets the term Id for this query to match terms that have the specified term as an ancestor.

Parametersosid.id.IdtermIda term Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT termId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorTermIdTerms
Description

Clears the ancestor term Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorTermQuery
Description

Tests if a TermQuery is available.

Returnboolean true if a termency query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorTermQuery
Description

Gets the query for a term. Multiple retrievals produce a nested OR term.

Returnosid.course.TermQuerythe term query
ErrorsUNIMPLEMENTED supportsAncestorTermQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorTermQuery() is true.
MethodmatchAnyAncestorTerm
Description

Matches terms with any ancestor.

Parametersbooleanmatch true to match terms with any ancestor, false to match root terms
CompliancemandatoryThis method must be implemented.
MethodclearAncestorTermTerms
Description

Clears the ancestor term query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantTermId
Description

Sets the term Id for this query to match terms that have the specified term as a descendant.

Parametersosid.id.IdtermIda term Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT termId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantTermIdTerms
Description

Clears the descendant term Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantTermQuery
Description

Tests if a TermQuery is available.

Returnboolean true if a termency query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantTermQuery
Description

Gets the query for a term. Multiple retrievals produce a nested OR term.

Returnosid.course.TermQuerythe term query
ErrorsUNIMPLEMENTED supportsDescendantTermQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantTermQuery() is true.
MethodmatchAnyDescendantTerm
Description

Matches terms with any descendant.

Parametersbooleanmatch true to match terms with any Ddscendant, false to match leaf terms
CompliancemandatoryThis method must be implemented.
MethodclearDescendantTermTerms
Description

Clears the descendant term query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseOfferingId
Description

Sets the course offering Id for this query to match terms assigned to course offerings.

Parametersosid.id.IdcourseOfferingIdthe course offering Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseOfferingId is null
CompliancemandatoryThis method must be implemented.
MethodclearCourseOfferingIdTerms
Description

Clears the course offering Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCourseOfferingQuery
Description

Tests if a CourseOfferingQuery is available.

Returnboolean true if a course offering query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCourseOfferingQuery
Description

Gets the query for a course offering. Multiple retrievals produce a nested OR term.

Returnosid.course.CourseOfferingQuerythe course offering query
ErrorsUNIMPLEMENTED supportsCourseOfferingQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseOfferingQuery() is true.
MethodmatchAnyCourseOffering
Description

Matches courses that have any course offering.

Parametersbooleanmatch true to match terms with any course offering, false to match terms with no course offerings
CompliancemandatoryThis method must be implemented.
MethodclearCourseOfferingTerms
Description

Clears the course offering query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query to match terms assigned to course catalogs.

Parametersosid.id.IdcourseCatalogIdthe course catalog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseCatalogId is null
CompliancemandatoryThis method must be implemented.
MethodclearCourseCatalogIdTerms
Description

Clears the course catalog Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCourseCatalogQuery
Description

Tests if a CourseCatalogQuery is available.

Returnboolean true if a course catalog query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogQuery
Description

Gets the query for a course catalog. Multiple retrievals produce a nested OR term.

Returnosid.course.CourseCatalogQuerythe course catalog query
ErrorsUNIMPLEMENTED supportsCourseCatalogQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseCatalogQuery() is true.
MethodclearCourseCatalogTerms
Description

Clears the course catalog query terms.

CompliancemandatoryThis method must be implemented.
MethodgetTermQueryRecord
Description

Gets the term query record corresponding to the given Term record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypetermRecordTypea term record type
Returnosid.course.records.TermQueryRecordthe term query record
ErrorsNULL_ARGUMENT termRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(termRecordType) is false
CompliancemandatoryThis method must be implemented.