org.pentaho.reporting.libraries.base.versioning
Class VersionHelper

java.lang.Object
  extended by 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

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
 String getProductId()
          Returns the product id as computed by createProductId().
 String getReleaseBuildNumber()
          Returns the release build number.
 String getReleaseCandidateToken()
          Returns the release candidate token.
 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 getTitle()
          Returns the implementation title as specified in the manifest.
 String getVersion()
          Returns the full version string as computed by createVersion().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getVersion

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

Returns:
the version string.
See Also:
createVersion()

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.

Returns:
the milestone number.

getReleaseMinor

public String getReleaseMinor()
Returns the release minor number.

Returns:
the minor version number.

getReleaseMajor

public String getReleaseMajor()
Returns the release major number.

Returns:
the major version number.

getReleaseCandidateToken

public String getReleaseCandidateToken()
Returns the release candidate token.

Returns:
the candidate token.

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).