OSID Logo
OSID Specifications
installation package
Version 3.1.0
Interfaceosid.installation.InstallationContent
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.installation.InstallationContentList
osid.installation.InstallationPackageAdminSession
Description

An installation content contains information about the installation data.

MethodgetInstallationPackageId
Description

Gets the InstallationPackage Id corresponding to this content.

Returnosid.id.Id the package Id
Compliancemandatory This method must be implemented.
MethodgetInstallationPackage
Description

Gets the InstallationPackage corresponding to this content.

Returnosid.installation.InstallationPackage the package
Compliancemandatory This method must be implemented.
MethodhasDataLength
Description

Tests if a data length is available.

Returnboolean true if a length is available for this content, false otherwise.
Compliancemandatory This method must be implemented.
MethodgetDataLength
Description

Gets the length of the data represented by this content in bytes.

Returncardinal the length of the data stream
ErrorsILLEGAL_STATE hasDataLength() is false
Compliancemandatory This method must be implemented.
MethodgetData
Description

Gets the asset content data.

Returnosid.transport.DataInputStream the length of the content data
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetInstallationContentRecord
Description

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

Parametersosid.type.TypeinstallationContentRecordType an installation content record type
Returnosid.installation.records.InstallationContentRecord the installation content record
ErrorsNULL_ARGUMENT installationContentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(installationContentRecordType) is false
Compliancemandatory This method must be implemented.