OSID Logo
OSID Specifications
ontology package
Version 3.0.0
Interfaceosid.ontology.SubjectForm
Implementsosid.OsidObjectForm
osid.OsidFederateableForm
Implemented Byosid.ontology.batch.SubjectBatchForm
Used Byosid.ontology.SubjectAdminSession
Description

This is the form for creating and updating Subjects .Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the SubjectAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetCodeMetadata
Description

Gets the metadata for the code.

Returnosid.Metadatametadata for the code
CompliancemandatoryThis method must be implemented.
MethodsetCode
Description

Sets the code.

Parametersstringcodethe new code
ErrorsINVALID_ARGUMENTcode is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcode is null
CompliancemandatoryThis method must be implemented.
MethodclearCode
Description

Clears the code.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetSubjectFormRecord
Description

Gets the SubjectFormRecord corresponding to the given subject record Type .

Parametersosid.type.TypesubjectRecordTypethe subject record type
Returnosid.ontology.records.SubjectFormRecordthe subject form record
ErrorsNULL_ARGUMENTsubjectRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(subjectRecordType) is false
CompliancemandatoryThis method must be implemented.