Package org.globus.common
Class Version
- java.lang.Object
-
- org.globus.common.Version
-
public class Version extends java.lang.ObjectThis class contains version information of the JGlobus module. The version number is composed as MAJOR.MINOR.PATCH.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOG_VERSIONCOG version.static intMAJORThe major release numberstatic intMINORThe minor release numberstatic intPATCHThe patchlevel of the current release
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetMajor()Returns the major release number.static intgetMinor()Returns the minor release number.static intgetPatch()Returns the patch level.static java.lang.StringgetVersion()Returns the current version as string in the form MAJOR.MINOR.PATCH.static voidmain(java.lang.String[] args)Returns the version for the Java CoG Kit as a readble string.
-
-
-
Field Detail
-
COG_VERSION
private static java.lang.String COG_VERSION
COG version. Required to be MAJOR.MINOR.PATCH, with format integer.integer.integer.
-
MAJOR
public static final int MAJOR
The major release number
-
MINOR
public static final int MINOR
The minor release number
-
PATCH
public static final int PATCH
The patchlevel of the current release
-
-
Method Detail
-
getVersion
public static java.lang.String getVersion()
Returns the current version as string in the form MAJOR.MINOR.PATCH.
-
getMajor
public static int getMajor()
Returns the major release number.- Returns:
- the major release
-
getMinor
public static int getMinor()
Returns the minor release number.- Returns:
- the minor release number
-
getPatch
public static int getPatch()
Returns the patch level.- Returns:
- the patch level
-
main
public static void main(java.lang.String[] args)
Returns the version for the Java CoG Kit as a readble string.- Parameters:
args-
-
-