Class VersionHelper
- java.lang.Object
-
- org.pentaho.reporting.libraries.base.versioning.VersionHelper
-
public class VersionHelper extends Object
A utility class for reading versioning information from a Manifest file.- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static String
SNAPSHOT_TOKEN
-
Constructor Summary
Constructors Constructor Description VersionHelper(ProjectInformation projectInformation)
Loads the versioning information for the given project-information structure using the project information's internal name as lookup key.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getProductId()
Returns the product id as computed by createProductId().String
getReleaseBuildNumber()
Returns the release build number.String
getReleaseCandidateToken()
Deprecated.No longer used.String
getReleaseMajor()
Returns the release major number.String
getReleaseMilestone()
Returns the release milestone number.String
getReleaseMinor()
Returns the release minor number.String
getReleaseNumber()
Returns the release number.String
getReleasePatch()
Returns the release patch number.String
getTitle()
Returns the implementation title as specified in the manifest.String
getVersion()
Returns the full version string as computed by createVersion().protected void
parseVersion(String version)
-
-
-
Field Detail
-
SNAPSHOT_TOKEN
public static final String SNAPSHOT_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VersionHelper
public VersionHelper(ProjectInformation projectInformation)
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 Detail
-
parseVersion
protected void parseVersion(String version)
-
getVersion
public String getVersion()
Returns the full version string as computed by createVersion().- Returns:
- the version string.
-
getTitle
public String getTitle()
Returns the implementation title as specified in the manifest.- Returns:
- the implementation title.
-
getProductId
public String getProductId()
Returns the product id as computed by createProductId().- Returns:
- the product id.
- See Also:
createProductId()
-
getReleaseMilestone
public String getReleaseMilestone()
Returns the release milestone number. Defaults to 999 if not given in the manifest.- Returns:
- the milestone number.
-
getReleaseMinor
public String getReleaseMinor()
Returns the release minor number. Defaults to 999 if not given in the manifest.- Returns:
- the minor version number.
-
getReleaseMajor
public String getReleaseMajor()
Returns the release major number. Defaults to 999 if not given in the manifest.- Returns:
- the major version number.
-
getReleaseCandidateToken
@Deprecated public String getReleaseCandidateToken()
Deprecated.No longer used.Returns the release candidate token. Defaults to 999 if not given in the manifest.- Returns:
- the candidate token.
-
getReleasePatch
public String getReleasePatch()
Returns the release patch number. Defaults to zero if not given in the manifest.- Returns:
- the patch version number.
-
getReleaseNumber
public String getReleaseNumber()
Returns the release number.- Returns:
- the release number.
-
getReleaseBuildNumber
public String getReleaseBuildNumber()
Returns the release build number.- Returns:
- the build-number).
-
-