Class VersionHelper


  • public class VersionHelper
    extends Object
    A utility class for reading versioning information from a Manifest file.
    Author:
    Thomas Morgner
    • 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).