OSID Logo
OSID Specifications
ontology package
Version 3.1.0
Interfaceosid.ontology.Subject
Implementsosid.OsidObject
osid.Federateable
Used Byosid.course.requisite.CourseRequirement
osid.ontology.Relevancy
osid.ontology.SubjectAdminSession
osid.ontology.SubjectList
osid.ontology.SubjectLookupSession
osid.ontology.SubjectNode
osid.tracking.Issue
Description

A Subject represents a span of time and an optional location. Subjects may be managed individually, or in repeatable sets using RecuringSubject.

MethodgetCode
Description

Gets a code associated with this subject.

Returnstring the subject code
Compliancemandatory This method must be implemented.
MethodgetSubjectRecord
Description

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

Parametersosid.type.TypesubjectRecordType the type of the record to retrieve
Returnosid.ontology.records.SubjectRecord the subject record
ErrorsNULL_ARGUMENT subjectRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(subjectRecordType) is false
Compliancemandatory This method must be implemented.