OSID Logo
OSID Specifications
lexicon package
Version 3.1.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.Metadata metadata for the language type
Compliancemandatory This method must be implemented.
MethodsetLanguageType
Description

Sets the language type.

Parametersosid.type.TypelanguageType the new language type
ErrorsINVALID_ARGUMENT languageType is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT languageType is null
Compliancemandatory This method must be implemented.
MethodclearLanguageType
Description

Removes the language type.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetScriptTypeMetadata
Description

Gets the metadata for the script type.

Returnosid.Metadata metadata for the script type
Compliancemandatory This method must be implemented.
MethodsetScriptType
Description

Sets the script type.

Parametersosid.type.TypescriptType the new script type
ErrorsINVALID_ARGUMENT scriptType is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT scriptType is null
Compliancemandatory This method must be implemented.
MethodclearScriptType
Description

Removes the script type.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetFormatTypeMetadata
Description

Gets the metadata for the format type.

Returnosid.Metadata metadata for the format type
Compliancemandatory This method must be implemented.
MethodsetFormatType
Description

Sets the format type.

Parametersosid.type.TypeformatType the new format type
ErrorsINVALID_ARGUMENT formatType is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT formatType is null
Compliancemandatory This method must be implemented.
MethodclearFormatType
Description

Removes the format type.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetTemplateMetadata
Description

Gets the metadata for the template.

Returnosid.Metadata metadata for the template
Compliancemandatory This method must be implemented.
MethodsetTemplate
Description

Sets the template.

Parametersstringtemplate the new template
ErrorsINVALID_ARGUMENT template is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT template is null
Compliancemandatory This method must be implemented.
MethodclearTemplate
Description

Removes the template.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetIdiomFormRecord
Description

Gets the IdiomFormRecord corresponding to the given idiom record Type.

Parametersosid.type.TypeidiomRecordType an idiom record type
Returnosid.lexicon.records.IdiomFormRecord the idiom form record
ErrorsNULL_ARGUMENT idiomRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(idiomRecordType) is false
Compliancemandatory This method must be implemented.