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 void
close()
Closes this package and releases underlying data.@NotNull Dependency[]
getDependencies()
Returns the dependencies of this package@NotNull PackageId
getId()
Returns the id of this package@Nullable java.util.Calendar
getInstallationTime()
Returns the date when the package was installed@NotNull VaultPackage
getPackage()
Returns the vault package stored in the data of this package@NotNull PackageProperties
getPackageProperties()
Returns thePackageProperties
of this packagelong
getSize()
Returns the size of the underlying package.@NotNull WorkspaceFilter
getWorkspaceFilter()
Returns theWorkspaceFilter
of this packageboolean
isInstalled()
Checks if this package is installed.
-
-
-
Method Detail
-
getId
@NotNull @NotNull PackageId getId()
Returns the id of this package- Returns:
- the id of this package.
-
getPackage
@NotNull @NotNull 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
@NotNull @NotNull Dependency[] getDependencies()
Returns the dependencies of this package- Returns:
- the dependencies of this package.
-
getWorkspaceFilter
@NotNull @NotNull WorkspaceFilter getWorkspaceFilter()
Returns theWorkspaceFilter
of this package- Returns:
WorkspaceFilter
of this package
-
getPackageProperties
@NotNull @NotNull PackageProperties getPackageProperties() throws java.io.IOException
Returns thePackageProperties
of this package- Returns:
PackageProperties
of 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:
true
if this package is installed.
-
getInstallationTime
@Nullable @Nullable java.util.Calendar getInstallationTime()
Returns the date when the package was installed- Returns:
- the installed date or
null
if not installed.
-
close
void close()
Closes this package and releases underlying data.- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-