Class Version
java.lang.Object
org.globus.common.Version
This class contains version information of the JGlobus module.
The version number is composed as MAJOR.MINOR.PATCH.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static StringCOG version.static final intThe major release numberstatic final intThe minor release numberstatic final intThe patchlevel of the current release -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetMajor()Returns the major release number.static intgetMinor()Returns the minor release number.static intgetPatch()Returns the patch level.static StringReturns the current version as string in the form MAJOR.MINOR.PATCH.static voidReturns the version for the Java CoG Kit as a readble string.
-
Field Details
-
COG_VERSION
COG version. Required to be MAJOR.MINOR.PATCH, with format integer.integer.integer. -
MAJOR
public static final int MAJORThe major release number -
MINOR
public static final int MINORThe minor release number -
PATCH
public static final int PATCHThe patchlevel of the current release
-
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
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
Returns the version for the Java CoG Kit as a readble string.- Parameters:
args-
-