Class Version


  • public class Version
    extends Object
    This class stores variables for the version and build numbers that are used in printouts and exceptions.
    Since:
    1.0,
    Author:
    Eric Gwin
    • Field Detail

      • JDK_VERSION_NOT_SET

        @Deprecated
        public static final int JDK_VERSION_NOT_SET
        Deprecated.
        Use JavaSEPlatform instead. Will be removed in 2.7.
        Keep track of JDK version in order to make some decisions about data structures.
        See Also:
        Constant Field Values
      • JDK_VERSION

        @Deprecated
        public static int JDK_VERSION
        Deprecated.
        Use JavaSEPlatform instead. Will be removed in 2.7.
    • Constructor Detail

      • Version

        public Version()
    • Method Detail

      • getVersionString

        public static String getVersionString()
        Returns version String containing three part version number and build qualifier.
        Returns:
        Version String.
      • getProduct

        public static String getProduct()
      • setProduct

        public static void setProduct​(String ProductName)
      • getVersion

        public static String getVersion()
      • getQualifier

        public static String getQualifier()
      • getBuildNumber

        public static String getBuildNumber()
      • getBuildDate

        public static String getBuildDate()
      • getBuildTime

        public static String getBuildTime()
      • getBuildRevision

        public static String getBuildRevision()
      • getBuildType

        public static String getBuildType()
      • getJDKVersion

        @Deprecated
        public static int getJDKVersion()
        Deprecated.
        Use JavaSEPlatform.CURRENT instead. Will be removed in 2.7.
        INTERNAL: Return the JDK version we are using.
      • useJDK15

        @Deprecated
        public static void useJDK15()
        Deprecated.
        Use JavaSEPlatform instead. Will be removed in 2.7.
        Set 1.5 as current Java SE version.
        Throws:
        UnsupportedOperationException - when invoked because Java SE 1.5 is not supported by current EclipseLink.
      • useJDK16

        @Deprecated
        public static void useJDK16()
        Deprecated.
        Use JavaSEPlatform instead. Will be removed in 2.7.
        Set 1.6 as current Java SE version.
        Throws:
        UnsupportedOperationException - when invoked because Java SE 1.6 is not supported by current EclipseLink.
      • isJDK15

        public static boolean isJDK15()
        Check whether we are running on Java SE 1.5. This will always return false because Java SE 1.5 is not supported by current EclipseLink.
        Returns:
        Value of true when we do and value of false when we do not run on Java SE 1.5.
      • isJDK16

        public static boolean isJDK16()
        Check whether we are running on Java SE 1.6. This will always return false because Java SE 1.6 is not supported by current EclipseLink.
        Returns:
        Value of true when we do and value of false when we do not run on Java SE 1.6.
      • isJDK17

        public static boolean isJDK17()
        Check whether we are running on Java SE 1.7.
        Returns:
        Value of true when we do and value of false when we do not run on Java SE 1.7.
      • isJDK18

        public static boolean isJDK18()
        Check whether we are running on Java SE 1.8.
        Returns:
        Value of true when we do and value of false when we do not run on Java SE 1.8.
      • isJDK19

        public static boolean isJDK19()
        Check whether we are running on Java SE 1.9.
        Returns:
        Value of true when we do and value of false when we do not run on Java SE 1.9.
      • printVersion

        public static void printVersion()
      • main

        public static void main​(String[] args)