Interface InstallationContent
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
An installation content contains information about the installation data.
-
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets the asset content data.longGets the length of the data represented by this content in bytes.getInstallationContentRecord(Type installationContentRecordType) Gets the installation content record corresponding to the givenInstallationContentrecordType.Gets thePackagecorresponding to this content.Gets thePackage Idcorresponding to this content.booleanTests if a data length is available.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getPackageId
Id getPackageId()Gets thePackage Idcorresponding to this content.- Returns:
- the package
Id - Compliance:
mandatory- This method must be implemented.
-
getPackage
Package getPackage()Gets thePackagecorresponding to this content.- Returns:
- the package
- Compliance:
mandatory- This method must be implemented.
-
hasDataLength
boolean hasDataLength()Tests if a data length is available.- Returns:
trueif a length is available for this content,falseotherwise.- Compliance:
mandatory- This method must be implemented.
-
getDataLength
long getDataLength()Gets the length of the data represented by this content in bytes.- Returns:
- the length of the data stream
- Throws:
IllegalStateException-hasDataLength()isfalse- Compliance:
mandatory- This method must be implemented.
-
getData
Gets the asset content data.- Returns:
- the length of the content data
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getInstallationContentRecord
InstallationContentRecord getInstallationContentRecord(Type installationContentRecordType) throws OperationFailedException Gets the installation content record corresponding to the givenInstallationContentrecordType. This method is used to retrieve an object implementing the requested record. TheinstallationContentRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(installationContentRecordType)istrue.- Parameters:
installationContentRecordType- an installation content record type- Returns:
- the installation content record
- Throws:
NullArgumentException-installationContentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(installationContentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-