public class ProductInformation extends Object
getVersion()
) and per-module (i.e. per-artifact) information
provided by the getArtifacts()
/getArtifact(String)
methods.Modifier and Type | Class and Description |
---|---|
static class |
ProductInformation.Artifact
This class describes a single artifact.
|
Modifier and Type | Field and Description |
---|---|
static String |
TEXT_DO_NOT_USE_IN_PRODUCTION |
static String |
TEXT_UNSUPPORTED_PREVIEW_VERSION |
static String |
UNKNOWN |
Constructor and Description |
---|
ProductInformation() |
Modifier and Type | Method and Description |
---|---|
static ProductInformation.Artifact |
getArtifact(String compositeID)
Get the artifact with the given composite id of the form
group-ID:artifact-ID . |
static String |
getArtifactID()
Return the main maven artifact-ID for jadice document platform.
|
static Map<String,ProductInformation.Artifact> |
getArtifacts()
Return a map of artifacts contained in this installation.
|
static Date |
getBuildTimestamp()
Return the build timestamp for the main jadice document platform artifact.
|
static String |
getGroupID()
Return the main maven group-ID for jadice document platform.
|
static int |
getMajorVersion()
Return the major version number, i.e.
|
static int |
getMinorVersion()
Return the minor version number, i.e.
|
static int |
getPatchLevel()
Return the patch level, i.e.
|
static String |
getProductId()
Return the product-ID used for prefixing qualified log messages.
|
static int |
getReleaseVersion()
Return the release version number, i.e.
|
static String |
getVersion()
Return the full version string for the main jadice document platform artifact.
|
static String |
getVersion(String compositeID)
Return the full version string for the artifact with the given composite id.
|
static int |
getVersionPart(int i)
Return the i'th version part of the version number of the jadice document platform.
|
static boolean |
isRelease()
Return whether this is a release version.
|
static boolean |
isSnapshot()
Return whether this is a snapshot version.
|
public static final String UNKNOWN
public static final String TEXT_DO_NOT_USE_IN_PRODUCTION
public static final String TEXT_UNSUPPORTED_PREVIEW_VERSION
public static Map<String,ProductInformation.Artifact> getArtifacts()
ProductInformation.Artifact
s indexed by composite id.public static String getProductId()
PRODUCT_ID
public static String getArtifactID()
public static String getGroupID()
public static String getVersion()
public static String getVersion(String compositeID)
compositeID
- the composite id of the form group-ID:artifact-ID
UNKNOWN
. Never null
.public static int getVersionPart(int i)
i
- the part to retrieve, i.e. part 0 = major version, part 1 = minor version etc.getMajorVersion()
,
getMinorVersion()
,
getReleaseVersion()
,
getPatchLevel()
public static boolean isSnapshot()
true
for snapshot versionspublic static boolean isRelease()
true
for release versionspublic static Date getBuildTimestamp()
public static int getMajorVersion()
public static int getMinorVersion()
public static int getReleaseVersion()
public static int getPatchLevel()
public static ProductInformation.Artifact getArtifact(String compositeID)
group-ID:artifact-ID
.compositeID
- the composite idProductInformation.Artifact
or null
if it was not found.Copyright © 2024 levigo holding gmbh. All rights reserved.