OSID Logo
OSID Specifications
lexicon package
Version 3.0.0
Interfaceosid.lexicon.IdiomForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Implemented Byosid.lexicon.batch.IdiomBatchForm
Used Byosid.lexicon.IdiomAdminSession
Description

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

MethodgetLanguageTypeMetadata
Description

Gets the metadata for the language type.

Returnosid.Metadatametadata for the language type
CompliancemandatoryThis method must be implemented.
MethodsetLanguageType
Description

Sets the language type.

Parametersosid.type.TypelanguageTypethe new language type
ErrorsINVALID_ARGUMENTlanguageType is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTlanguageType is null
CompliancemandatoryThis method must be implemented.
MethodclearLanguageType
Description

Removes the language type.

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

Gets the metadata for the script type.

Returnosid.Metadatametadata for the script type
CompliancemandatoryThis method must be implemented.
MethodsetScriptType
Description

Sets the script type.

Parametersosid.type.TypescriptTypethe new script type
ErrorsINVALID_ARGUMENTscriptType is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTscriptType is null
CompliancemandatoryThis method must be implemented.
MethodclearScriptType
Description

Removes the script type.

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

Gets the metadata for the format type.

Returnosid.Metadatametadata for the format type
CompliancemandatoryThis method must be implemented.
MethodsetFormatType
Description

Sets the format type.

Parametersosid.type.TypeformatTypethe new format type
ErrorsINVALID_ARGUMENTformatType is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTformatType is null
CompliancemandatoryThis method must be implemented.
MethodclearFormatType
Description

Removes the format type.

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

Gets the metadata for the template.

Returnosid.Metadatametadata for the template
CompliancemandatoryThis method must be implemented.
MethodsetTemplate
Description

Sets the template.

Parametersstringtemplatethe new template
ErrorsINVALID_ARGUMENTtemplate is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTtemplate is null
CompliancemandatoryThis method must be implemented.
MethodclearTemplate
Description

Removes the template.

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

Gets the IdiomFormRecord corresponding to the given idiom record Type .

Parametersosid.type.TypeidiomRecordTypean idiom record type
Returnosid.lexicon.records.IdiomFormRecordthe idiom form record
ErrorsNULL_ARGUMENTidiomRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(idiomRecordType) is false
CompliancemandatoryThis method must be implemented.