|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.Version
public class Version
Get information about the BASE version.
The version information is stored in the base.version
file.
Field Summary | |
---|---|
private static int |
build
|
private static int |
maintenance
|
private static int |
major
|
private static int |
minor
|
private static String |
suffix
|
Constructor Summary | |
---|---|
Version()
|
Method Summary | |
---|---|
static int |
compareWith(String version)
Compare the given version string, which should be of the form a.b or a.b.c, with the current BASE version. |
static int |
getBuild()
Get the build version. |
static int |
getMaintenance()
Get the maintentance version. |
static int |
getMajor()
Get the major version. |
static int |
getMinor()
Get the minor version. |
static String |
getSuffix()
Get the version suffix string (eg "-dev" for development versions) |
static String |
getVersion()
|
(package private) static void |
init()
Loads the settings from the configuration file. |
private static int |
parseBuildNumber(String buildNumber)
Find the first digits in a string and return those as the build number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int major
private static int minor
private static int maintenance
private static int build
private static String suffix
Constructor Detail |
---|
public Version()
Method Detail |
---|
static void init() throws ConfigurationException
ConfigurationException
- This exception is thrown if the
configuration settings cannot be loadedpublic static int getMajor()
public static int getMinor()
public static int getMaintenance()
public static int getBuild()
public static String getSuffix()
public static String getVersion()
public static int compareWith(String version)
version
-
InvalidDataException
- If the given string isn't correctly formattedprivate static int parseBuildNumber(String buildNumber)
|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |