@ProviderType public interface RegisteredPackage extends Comparable<RegisteredPackage>, AutoCloseable
RegisteredPackage
...Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this package and releases underlying data.
|
Dependency[] |
getDependencies()
Returns the dependencies of this package
|
PackageId |
getId()
Returns the id of this package
|
Calendar |
getInstallationTime()
Returns the date when the package was installed
|
VaultPackage |
getPackage()
Returns the vault package stored in the data of this package
|
PackageProperties |
getPackageProperties()
Returns the
PackageProperties of this package |
long |
getSize()
Returns the size of the underlying package.
|
WorkspaceFilter |
getWorkspaceFilter()
Returns the
WorkspaceFilter of this package |
boolean |
isInstalled()
Checks if this package is installed.
|
compareTo
@Nonnull VaultPackage getPackage() throws IOException
IOException
- if an I/O error occurs@Nonnull Dependency[] getDependencies()
@Nonnull WorkspaceFilter getWorkspaceFilter()
WorkspaceFilter
of this packageWorkspaceFilter
of this package@Nonnull PackageProperties getPackageProperties() throws IOException
PackageProperties
of this packagePackageProperties
of this packageIOException
- if an I/O error occurslong getSize()
boolean isInstalled()
true
if this package is installed.@Nullable Calendar getInstallationTime()
null
if not installed.void close()
close
in interface AutoCloseable
Copyright © 2010 - 2020 Adobe. All Rights Reserved