| java.lang.Object org.griphyn.common.util.Version
Version | public class Version (Code) | | 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.
author: Karan Vahi author: Jens-S. Vöckler version: $Revision: 472 $ version: $Id: Version.in 472 2008-02-21 19:47:05Z gmehta $ |
Field Summary | |
final public static int | MAJOR This constant defines the major version number. | final public static int | MINOR This constant defines the minor version number. | final public static int | PLEVEL This constant defines the patch level version. | final public static String | STAMP_FILENAME Basename of the build stamp file. | protected static Version | c_instance Instance variable keeping track of the Singleton. |
MAJOR | final public static int MAJOR(Code) | | This constant defines the major version number.
|
MINOR | final public static int MINOR(Code) | | This constant defines the minor version number.
|
PLEVEL | final public static int PLEVEL(Code) | | This constant defines the patch level version.
|
STAMP_FILENAME | final public static String STAMP_FILENAME(Code) | | Basename of the build stamp file.
|
c_instance | protected static Version c_instance(Code) | | Instance variable keeping track of the Singleton.
|
determineBuilt | public String determineBuilt()(Code) | | Determines the built as a time stamp.
the formatted time stamp of the built. |
determineInstalled | public String determineInstalled()(Code) | | Determines the built and architecture of the installation. These
are usually separated by a linear white-space.
the formatted time stamp of the built, if available, and anidentifier for the architecture. An string indicating that thebuild is unknown is returned on failure. |
determinePlatform | public String determinePlatform()(Code) | | Determines the build platform.
an identifier for the build platform. |
instance | public static Version instance()(Code) | | Accessor to the singleton.
|
matches | public boolean matches()(Code) | | Determines, if the compiled version and the installed version
match. The match is done by comparing the timestamps and
architectures.
true, if versions match, false otherwise. |
toString | public String toString()(Code) | | Returns a string containing the concatenated version.
Note: This class may also return suffixes beyond the version.
a concatenated string. |
|
|