Interface LinuxPackage
- All Superinterfaces:
LinuxPackageMixin,Package
- All Known Subinterfaces:
LinuxDebPackage,LinuxRpmPackage
Linux package.
Use create(jdk.jpackage.internal.model.Package, jdk.jpackage.internal.model.LinuxPackageMixin) method to create objects implementing this interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.LinuxPackageMixin
LinuxPackageMixin.StubNested classes/interfaces inherited from interface jdk.jpackage.internal.model.Package
Package.Stub -
Method Summary
Modifier and TypeMethodDescriptionapp()Gets the application of this package.static LinuxPackagecreate(Package pkg, LinuxPackageMixin mixin) default booleanReturnstruein this Linux package installs in "/usr" tree.default StringGet the name without an extension of the package file of this package.Gets the layout of the installed app image of the application resolved at the relative installation directory of this package.default StringGets the version with the release component of this Linux package.Methods inherited from interface jdk.jpackage.internal.model.LinuxPackageMixin
additionalDependencies, arch, category, menuGroupName, releaseMethods inherited from interface jdk.jpackage.internal.model.Package
aboutURL, appImageLayout, asApplicationLayout, asInstalledPackageApplicationLayout, asPackageApplicationLayout, asStandardPackageType, description, installedPackageLayout, isRuntimeInstaller, licenseFile, packageFileNameWithSuffix, packageFileSuffix, packageName, predefinedAppImage, relativeInstallDir, type, version
-
Method Details
-
app
LinuxApplication app()Description copied from interface:PackageGets the application of this package. -
packageLayout
AppImageLayout packageLayout()Description copied from interface:PackageGets the layout of the installed app image of the application resolved at the relative installation directory of this package.- Specified by:
packageLayoutin interfaceLinuxPackageMixin- Specified by:
packageLayoutin interfacePackage- Returns:
- the layout of the installed app image of the application resolved at the relative installation directory of this package
- See Also:
-
packageFileName
Description copied from interface:PackageGet the name without an extension of the package file of this package.- Specified by:
packageFileNamein interfacePackage- Returns:
- the name without an extension of the package file of this package
-
versionWithRelease
Gets the version with the release component of this Linux package.- Returns:
- the version with the release component of this Linux package
-
isInstallDirInUsrTree
default boolean isInstallDirInUsrTree()Returnstruein this Linux package installs in "/usr" tree.- Returns:
truein this Linux package installs in "/usr" tree
-
create
- Parameters:
pkg- the generic packagemixin- Linux-specific details supplementing the Linux package- Returns:
- the proxy dispatching calls to the given objects
-