Class VersionHelper
java.lang.Object
org.pentaho.reporting.libraries.base.versioning.VersionHelper
A utility class for reading versioning information from a Manifest file.
- Author:
- Thomas Morgner
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVersionHelper
(ProjectInformation projectInformation) Loads the versioning information for the given project-information structure using the project information's internal name as lookup key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the product id as computed by createProductId().Returns the release build number.Deprecated.No longer used.Returns the release major number.Returns the release milestone number.Returns the release minor number.Returns the release number.Returns the release patch number.getTitle()
Returns the implementation title as specified in the manifest.Returns the full version string as computed by createVersion().protected void
parseVersion
(String version)
-
Field Details
-
SNAPSHOT_TOKEN
- See Also:
-
-
Constructor Details
-
VersionHelper
Loads the versioning information for the given project-information structure using the project information's internal name as lookup key.- Parameters:
projectInformation
- the project we load information for.
-
-
Method Details
-
parseVersion
-
getVersion
Returns the full version string as computed by createVersion().- Returns:
- the version string.
-
getTitle
Returns the implementation title as specified in the manifest.- Returns:
- the implementation title.
-
getProductId
Returns the product id as computed by createProductId().- Returns:
- the product id.
- See Also:
-
createProductId()
-
getReleaseMilestone
Returns the release milestone number. Defaults to 999 if not given in the manifest.- Returns:
- the milestone number.
-
getReleaseMinor
Returns the release minor number. Defaults to 999 if not given in the manifest.- Returns:
- the minor version number.
-
getReleaseMajor
Returns the release major number. Defaults to 999 if not given in the manifest.- Returns:
- the major version number.
-
getReleaseCandidateToken
Deprecated.No longer used.Returns the release candidate token. Defaults to 999 if not given in the manifest.- Returns:
- the candidate token.
-
getReleasePatch
Returns the release patch number. Defaults to zero if not given in the manifest.- Returns:
- the patch version number.
-
getReleaseNumber
Returns the release number.- Returns:
- the release number.
-
getReleaseBuildNumber
Returns the release build number.- Returns:
- the build-number).
-