|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.common.util.Version
public class Version
This class solely defines the version numbers of PEGASUS. The template file will be substituted by ant during the built process to compile in the built timestamp.
When using the class, the methods for the version number digits
will always return an integer. In order to obtain the full version
number, including any "release candidate" suffices, please prefer
the toString method over combining the separate version
integers yourself.
| Field Summary | |
|---|---|
protected static Version |
c_instance
Instance variable keeping track of the Singleton. |
static int |
MAJOR
This constant defines the major version number. |
static int |
MINOR
This constant defines the minor version number. |
static int |
PLEVEL
This constant defines the patch level version. |
static String |
STAMP_FILENAME
Basename of the build stamp file. |
| Constructor Summary | |
|---|---|
private |
Version()
C'tor: construct an element, which is empty anyway. |
| Method Summary | |
|---|---|
String |
determineBuilt()
Determines the built as a time stamp. |
String |
determineInstalled()
Determines the built and architecture of the installation. |
String |
determinePlatform()
Determines the build platform. |
static Version |
instance()
Accessor to the singleton. |
boolean |
matches()
Determines, if the compiled version and the installed version match. |
String |
toString()
Returns a string containing the concatenated version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAJOR
public static final int MINOR
public static final int PLEVEL
protected static Version c_instance
public static final String STAMP_FILENAME
| Constructor Detail |
|---|
private Version()
| Method Detail |
|---|
public static Version instance()
public String toString()
toString in class Objectpublic String determineBuilt()
public String determinePlatform()
public String determineInstalled()
public boolean matches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||