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

java.lang.Object
  extended by org.pentaho.reporting.libraries.base.versioning.VersionHelper

public class VersionHelper
extends java.lang.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
 java.lang.String getProductId()
          Returns the product id as computed by createProductId().
 java.lang.String getReleaseBuildNumber()
          Returns the release build number.
 java.lang.String getReleaseCandidateToken()
          Returns the release candidate token.
 java.lang.String getReleaseMajor()
          Returns the release major number.
 java.lang.String getReleaseMilestone()
          Returns the release milestone number.
 java.lang.String getReleaseMinor()
          Returns the release minor number.
 java.lang.String getReleaseNumber()
          Returns the release number.
 java.lang.String getTitle()
          Returns the implementation title as specified in the manifest.
 java.lang.String getVersion()
          Returns the full version string as computed by createVersion().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 java.lang.String getVersion()
Returns the full version string as computed by createVersion().

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

getTitle

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

Returns:
the implementation title.

getProductId

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

Returns:
the product id.
See Also:
createProductId()

getReleaseMilestone

public java.lang.String getReleaseMilestone()
Returns the release milestone number.

Returns:
the milestone number.

getReleaseMinor

public java.lang.String getReleaseMinor()
Returns the release minor number.

Returns:
the minor version number.

getReleaseMajor

public java.lang.String getReleaseMajor()
Returns the release major number.

Returns:
the major version number.

getReleaseCandidateToken

public java.lang.String getReleaseCandidateToken()
Returns the release candidate token.

Returns:
the candidate token.

getReleaseNumber

public java.lang.String getReleaseNumber()
Returns the release number.

Returns:
the release number.

getReleaseBuildNumber

public java.lang.String getReleaseBuildNumber()
Returns the release build number.

Returns:
the build-number).