Interface RegisteredPackage
-
- All Superinterfaces:
java.lang.AutoCloseable,java.lang.Comparable<RegisteredPackage>
@ProviderType public interface RegisteredPackage extends java.lang.Comparable<RegisteredPackage>, java.lang.AutoCloseable
RegisteredPackage...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes this package and releases underlying data.Dependency[]getDependencies()Returns the dependencies of this packagePackageIdgetId()Returns the id of this packagejava.util.CalendargetInstallationTime()Returns the date when the package was installedVaultPackagegetPackage()Returns the vault package stored in the data of this packagePackagePropertiesgetPackageProperties()Returns thePackagePropertiesof this packagelonggetSize()Returns the size of the underlying package.WorkspaceFiltergetWorkspaceFilter()Returns theWorkspaceFilterof this packagebooleanisInstalled()Checks if this package is installed.
-
-
-
Method Detail
-
getId
@Nonnull PackageId getId()
Returns the id of this package- Returns:
- the id of this package.
-
getPackage
@Nonnull VaultPackage getPackage() throws java.io.IOException
Returns the vault package stored in the data of this package- Returns:
- the package
- Throws:
java.io.IOException- if an I/O error occurs
-
getDependencies
@Nonnull Dependency[] getDependencies()
Returns the dependencies of this package- Returns:
- the dependencies of this package.
-
getWorkspaceFilter
@Nonnull WorkspaceFilter getWorkspaceFilter()
Returns theWorkspaceFilterof this package- Returns:
WorkspaceFilterof this package
-
getPackageProperties
@Nonnull PackageProperties getPackageProperties() throws java.io.IOException
Returns thePackagePropertiesof this package- Returns:
PackagePropertiesof this package- Throws:
java.io.IOException- if an I/O error occurs
-
getSize
long getSize()
Returns the size of the underlying package.- Returns:
- the size in bytes
-
isInstalled
boolean isInstalled()
Checks if this package is installed.- Returns:
trueif this package is installed.
-
getInstallationTime
@Nullable java.util.Calendar getInstallationTime()
Returns the date when the package was installed- Returns:
- the installed date or
nullif not installed.
-
close
void close()
Closes this package and releases underlying data.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-