Use appImageLayout() or asApplicationLayout() to get the
unresolved source app image layout.
Installed app image layout is the layout of the installed app image.
Use installedPackageLayout() or
asInstalledPackageApplicationLayout() to get the installed app image
layout.
The following table shows app image layouts of the application named "Duke" on different platforms:
| Source app image layout | Installed app image layout | |
|---|---|---|
| Windows | bin/foo.exe app/foo.jar | Duke/bin/foo.exe Duke/app/foo.jar |
| Linux | bin/foo lib/app/foo.jar | /opt/duke/bin/foo /opt/duke/lib/app/foo.jar |
| OSX | Contents/MacOS/foo Contents/app/foo.jar | /Applications/Duke.app/Contents/MacOS/foo /Applications/Duke.app/Contents/app/foo.jar |
| Modifier and Type | Class and Description |
|---|---|
| public static record | Package.
Default implementation of |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public Application | |
| public default AppImageLayout | Returns: the unresolved app image layout of the application of this packageGets the unresolved source app image layout of the application of this package. |
| public default Optional | Returns: the unresolved source app image layout of the application of this package asApplicationLayout typeReturns the unresolved source app image layout of the application of this
package as |
| public default Optional | Returns: the layout of the installed app image of this package asApplicationLayout typeReturns the layout of the installed app image of this package as
|
| public default Optional | Returns: the type of this package asStandardPackageType typeGets the type of this package as |
| public String | |
| public AppImageLayout | Returns: the layout of the installed app image of this packageGets the layout of the installed app image of this package. |
| public default boolean | Returns: true if the application of this package is Java runtimeReturns |
| public Optional | Returns: the path to a license file of this packageGets the path to a license file of this package if available or an empty
|
| public default String | Returns: the name without an extension of the package file of this packageGet the name without an extension of the package file of this package. |
| public default String | Returns: the full name of the package file of this packageGets the full name of the package file of this package. |
| public default Optional | Returns: the extension of the package file of this packageGets the extension of the package file of this package if available or an
empty |
| public String | Returns: the name of the native package of this packageGets the name of the native package of this package. |
| public Optional | Returns: the path to a directory with the application app image of this packageGets the path to a directory with the predefined app image of this package if
available or an empty |
| public Path | Returns: the relative path to the package installation directory of this packageGets the relative path to the package installation directory of this package. |
| public PackageType | |
| public String |
| aboutURL | back to summary |
|---|---|
| public Optional Gets the "About" URL of this package if available or an empty
| |
| app | back to summary |
|---|---|
| public Application app() Gets the application of this package.
| |
| appImageLayout | back to summary |
|---|---|
| public default AppImageLayout appImageLayout() Gets the unresolved source app image layout of the application of this package.
| |
| asApplicationLayout | back to summary |
|---|---|
| public default Optional Returns the unresolved source app image layout of the application of this
package as
Returns an empty
| |
| asInstalledPackageApplicationLayout | back to summary |
|---|---|
| public default Optional Returns the layout of the installed app image of this package as
Returns an empty
| |
| asStandardPackageType | back to summary |
|---|---|
| public default Optional Gets the type of this package as
| |
| description | back to summary |
|---|---|
| public String description() Gets the description of this package.
| |
| installedPackageLayout | back to summary |
|---|---|
| public AppImageLayout installedPackageLayout() Gets the layout of the installed app image of this package.
| |
| isRuntimeInstaller | back to summary |
|---|---|
| public default boolean isRuntimeInstaller() Returns
| |
| licenseFile | back to summary |
|---|---|
| public Optional Gets the path to a license file of this package if available or an empty
| |
| packageFileName | back to summary |
|---|---|
| public default String packageFileName() Get the name without an extension of the package file of this package.
| |
| packageFileNameWithSuffix | back to summary |
|---|---|
| public default String packageFileNameWithSuffix() Gets the full name of the package file of this package. The full name consists of the name and the extension.
| |
| packageFileSuffix | back to summary |
|---|---|
| public default Optional Gets the extension of the package file of this package if available or an
empty | |
| packageName | back to summary |
|---|---|
| public String packageName() Gets the name of the native package of this package. The value is a valid file system name and can be safely used to name files/directories in the file system.
| |
| predefinedAppImage | back to summary |
|---|---|
| public Optional Gets the path to a directory with the predefined app image of this package if
available or an empty
If
If | |
| relativeInstallDir | back to summary |
|---|---|
| public Path relativeInstallDir() Gets the relative path to the package installation directory of this package.
On Windows it is relative to the program files directory
(
| |
| type | back to summary |
|---|---|
| public PackageType type() Gets the type of this package.
| |
| version | back to summary |
|---|---|
| public String version() Gets the version of this package.
| |
Package interface.
| Modifier and Type | Field and Description |
|---|---|
| private final Optional | aboutURL
Record Component accessed by aboutURL(). |
| private final Application | |
| private final String | description
Record Component accessed by description(). |
| private final AppImageLayout | installedPackageLayout
Record Component accessed by installedPackageLayout(). |
| private final Optional | licenseFile
Record Component accessed by licenseFile(). |
| private final String | packageName
Record Component accessed by packageName(). |
| private final Optional | predefinedAppImage
Record Component accessed by predefinedAppImage(). |
| private final Path | relativeInstallDir
Record Component accessed by relativeInstallDir(). |
| private final PackageType | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | Stub(Application app, PackageType type, String packageName, String description, String version, Optional<String> aboutURL, Optional<Path> licenseFile, Optional<Path> predefinedAppImage, AppImageLayout installedPackageLayout, Path relativeInstallDir)
|
| Modifier and Type | Method and Description |
|---|---|
| public Optional | aboutURL()
Record Component getter of aboutURL. Implements jdk. Gets the "About" URL of this package if available or an empty
|
| public Application | app()
Record Component getter of app. Implements jdk. Gets the application of this package.
|
| public String | description()
Record Component getter of description. Implements jdk. Gets the description of this package.
|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public AppImageLayout | installedPackageLayout()
Record Component getter of installedPackageLayout. Implements jdk. Gets the layout of the installed app image of this package.
|
| public Optional | licenseFile()
Record Component getter of licenseFile. Implements jdk. Gets the path to a license file of this package if available or an empty
|
| public String | packageName()
Record Component getter of packageName. Implements jdk. Gets the name of the native package of this package.
|
| public Optional | predefinedAppImage()
Record Component getter of predefinedAppImage. Implements jdk. Gets the path to a directory with the predefined app image of this package if
available or an empty
|
| public Path | relativeInstallDir()
Record Component getter of relativeInstallDir. Implements jdk. Gets the relative path to the package installation directory of this package.
|
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public PackageType | type()
Record Component getter of type. Implements jdk. Gets the type of this package.
|
| public String | version()
Record Component getter of version. Implements jdk. Gets the version of this package.
|
| aboutURL | back to summary |
|---|---|
| private final Optional<String> aboutURL Record Component accessed by aboutURL(). | |
| app | back to summary |
|---|---|
| private final Application app Record Component accessed by app(). | |
| description | back to summary |
|---|---|
| private final String description Record Component accessed by description(). | |
| installedPackageLayout | back to summary |
|---|---|
| private final AppImageLayout installedPackageLayout Record Component accessed by installedPackageLayout(). | |
| licenseFile | back to summary |
|---|---|
| private final Optional<Path> licenseFile Record Component accessed by licenseFile(). | |
| packageName | back to summary |
|---|---|
| private final String packageName Record Component accessed by packageName(). | |
| predefinedAppImage | back to summary |
|---|---|
| private final Optional<Path> predefinedAppImage Record Component accessed by predefinedAppImage(). | |
| relativeInstallDir | back to summary |
|---|---|
| private final Path relativeInstallDir Record Component accessed by relativeInstallDir(). | |
| type | back to summary |
|---|---|
| private final PackageType type Record Component accessed by type(). | |
| version | back to summary |
|---|---|
| private final String version Record Component accessed by version(). | |
| Stub | back to summary |
|---|---|
| public Stub(Application app, PackageType type, String packageName, String description, String version, Optional<String> aboutURL, Optional<Path> licenseFile, Optional<Path> predefinedAppImage, AppImageLayout installedPackageLayout, Path relativeInstallDir) | |
| aboutURL | back to summary |
|---|---|
| public Optional Record Component getter of aboutURL. Implements jdk. Doc from jdk. Gets the "About" URL of this package if available or an empty
| |
| app | back to summary |
|---|---|
| public Application app() Record Component getter of app. Implements jdk. Doc from jdk. Gets the application of this package. | |
| description | back to summary |
|---|---|
| public String description() Record Component getter of description. Implements jdk. Doc from jdk. Gets the description of this package. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| installedPackageLayout | back to summary |
|---|---|
| public AppImageLayout installedPackageLayout() Record Component getter of installedPackageLayout. Implements jdk. Doc from jdk. Gets the layout of the installed app image of this package. | |
| licenseFile | back to summary |
|---|---|
| public Optional Record Component getter of licenseFile. Implements jdk. Doc from jdk. Gets the path to a license file of this package if available or an empty
| |
| packageName | back to summary |
|---|---|
| public String packageName() Record Component getter of packageName. Implements jdk. Doc from jdk. Gets the name of the native package of this package. The value is a valid file system name and can be safely used to name files/directories in the file system. | |
| predefinedAppImage | back to summary |
|---|---|
| public Optional Record Component getter of predefinedAppImage. Implements jdk. Doc from jdk. Gets the path to a directory with the predefined app image of this package if
available or an empty
If
If | |
| relativeInstallDir | back to summary |
|---|---|
| public Path relativeInstallDir() Record Component getter of relativeInstallDir. Implements jdk. Doc from jdk. Gets the relative path to the package installation directory of this package.
On Windows it is relative to the program files directory
( | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| type | back to summary |
|---|---|
| public PackageType type() Record Component getter of type. Implements jdk. Doc from jdk. Gets the type of this package. | |
| version | back to summary |
|---|---|
| public String version() Record Component getter of version. Implements jdk. Doc from jdk. Gets the version of this package. | |