Class Version


  • public class Version
    extends java.lang.Object
    This class can be used to query the product version and the build attributes of the jar.
    • Constructor Summary

      Constructors 
      Constructor Description
      Version()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getDate()
      Get the build date of the loaded jar.
      static java.lang.String getLabel()
      Get the build label of the loaded jar.
      static int getMajor()
      Get the major version number of the loaded jar.
      static int getMinor()
      Get the minor version number of the loaded jar.
      static java.lang.String getNumber()
      Get the version number of the loaded jar.
      static void main​(java.lang.String[] args)
      Get the product version and the build attributes of the jar.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Version

        public Version()
    • Method Detail

      • getMajor

        public static int getMajor()
        Get the major version number of the loaded jar.
        Returns:
        major version number
      • getMinor

        public static int getMinor()
        Get the minor version number of the loaded jar.
        Returns:
        minor version number
      • getNumber

        public static java.lang.String getNumber()
        Get the version number of the loaded jar.
        Returns:
        version number
      • getDate

        public static java.lang.String getDate()
        Get the build date of the loaded jar.
        Returns:
        date in MMddyyyy or yyyyMMddHHmmssZ format
      • getLabel

        public static java.lang.String getLabel()
        Get the build label of the loaded jar.
        Returns:
        build label string
      • main

        public static void main​(java.lang.String[] args)
        Get the product version and the build attributes of the jar.