org.pentaho.reporting.libraries.base.versioning

Class VersionHelper

public class VersionHelper extends Object

A utility class for reading versioning information from a Manifest file.

Author: Thomas Morgner

Constructor Summary
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
StringgetProductId()
Returns the product id as computed by createProductId().
StringgetReleaseBuildNumber()
Returns the release build number.
StringgetReleaseCandidateToken()
Returns the release candidate token.
StringgetReleaseMajor()
Returns the release major number.
StringgetReleaseMilestone()
Returns the release milestone number.
StringgetReleaseMinor()
Returns the release minor number.
StringgetReleaseNumber()
Returns the release number.
StringgetTitle()
Returns the implementation title as specified in the manifest.
StringgetVersion()
Returns the full version string as computed by createVersion().

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

getProductId

public String getProductId()
Returns the product id as computed by createProductId().

Returns: the product id.

See Also: createProductId

getReleaseBuildNumber

public String getReleaseBuildNumber()
Returns the release build number.

Returns: the build-number).

getReleaseCandidateToken

public String getReleaseCandidateToken()
Returns the release candidate token.

Returns: the candidate token.

getReleaseMajor

public String getReleaseMajor()
Returns the release major number.

Returns: the major version number.

getReleaseMilestone

public String getReleaseMilestone()
Returns the release milestone number.

Returns: the milestone number.

getReleaseMinor

public String getReleaseMinor()
Returns the release minor number.

Returns: the minor version number.

getReleaseNumber

public String getReleaseNumber()
Returns the release number.

Returns: the release number.

getTitle

public String getTitle()
Returns the implementation title as specified in the manifest.

Returns: the implementation title.

getVersion

public String getVersion()
Returns the full version string as computed by createVersion().

Returns: the version string.

See Also: createVersion