public interface InstallationContent extends OsidObject, Subjugateable
An installation content contains information about the installation data.
Modifier and Type | Method and Description |
---|---|
DataInputStream |
getData()
Gets the asset content data.
|
long |
getDataLength()
Gets the length of the data represented by this content in bytes.
|
InstallationContentRecord |
getInstallationContentRecord(Type installationContentRecordType)
Gets the installation content record corresponding to the given
InstallationContent record Type. |
Package |
getPackage()
Gets the
Package corresponding to this content. |
Id |
getPackageId()
Gets the
Package Id corresponding to this content. |
boolean |
hasDataLength()
Tests if a data length is available.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
Id getPackageId()
Package Id
corresponding to this content. Id
mandatory
- This method must be implemented. Package getPackage()
Package
corresponding to this content.mandatory
- This method must be implemented. boolean hasDataLength()
true
if a length is available for this content,
false
otherwise.mandatory
- This method must be implemented. long getDataLength()
IllegalStateException
- hasDataLength()
is false
mandatory
- This method must be implemented. DataInputStream getData() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. InstallationContentRecord getInstallationContentRecord(Type installationContentRecordType) throws OperationFailedException
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
.installationContentRecordType
- an installation content record
typeNullArgumentException
-
installationContentRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(installationContentRecordType)
is
false
mandatory
- This method must be implemented.