soc.util
Class Version

java.lang.Object
  extended bysoc.util.Version

public class Version
extends java.lang.Object

Package level version file used to keep packaging and codebase in sync. The file Version.java.in is filtered to create Version.java when Callisto is built using ant. If you are not using ant to build Callisto you can do this manually by copying Version.java.in to Version.java, replacing "@ VERSION @" with the "version" property value in the file build.xml.

Author:
Chadwick A. McHenry

Field Summary
static java.lang.String BUILDNUM
           
static java.lang.String COPYRIGHT
           
static java.lang.String JRE_MIN_EDIT
           
static java.lang.String JRE_MIN_MAJOR
           
static java.lang.String JRE_MIN_MINOR
           
static java.lang.String JRE_MIN_VERSION
           
private static int jreMinEdit
           
private static int jreMinMajor
          ints for comparisons, concatentated and stored as JRE_MIN_VERSION
private static int jreMinMinor
           
static java.lang.String VERSION
           
private static java.util.Properties versionInfo
          Current version info
 
Constructor Summary
Version()
           
 
Method Summary
static java.lang.String buildnum()
          Return the build-number string.
static java.lang.String copyright()
          Return the copyright string.
(package private) static boolean isJREValid()
          Check for sufficient version of the JRE.
static java.lang.String minJREVersion()
          Return the minimum required jre.
static java.lang.String version()
          Return the current version string.
static int versionNumber()
          Return the current version number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static java.lang.String VERSION

COPYRIGHT

public static java.lang.String COPYRIGHT

BUILDNUM

public static java.lang.String BUILDNUM

JRE_MIN_VERSION

public static java.lang.String JRE_MIN_VERSION

JRE_MIN_MAJOR

public static java.lang.String JRE_MIN_MAJOR

JRE_MIN_MINOR

public static java.lang.String JRE_MIN_MINOR

JRE_MIN_EDIT

public static java.lang.String JRE_MIN_EDIT

versionInfo

private static java.util.Properties versionInfo
Current version info


jreMinMajor

private static int jreMinMajor
ints for comparisons, concatentated and stored as JRE_MIN_VERSION


jreMinMinor

private static int jreMinMinor

jreMinEdit

private static int jreMinEdit
Constructor Detail

Version

public Version()
Method Detail

version

public static java.lang.String version()
Return the current version string. @see #versionNumber()


versionNumber

public static int versionNumber()
Return the current version number.

Returns:
Version integer; 1100 is version 1.1.00.
See Also:
version()

copyright

public static java.lang.String copyright()
Return the copyright string.


buildnum

public static java.lang.String buildnum()
Return the build-number string.


minJREVersion

public static java.lang.String minJREVersion()
Return the minimum required jre.


isJREValid

static boolean isJREValid()
Check for sufficient version of the JRE.