|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarf.Version
public class Version
Responsible for providing and validating version information of MARF. A version should be bumped here at the beginning of every release cycle according to the versioning guidelines outlined in the manual.
$Id: Version.java,v 1.6 2007/12/31 00:17:05 mokhov Exp $
| Field Summary | |
|---|---|
static int |
MAJOR_VERSION
Indicates major MARF version, like 1.x.x. |
static int |
MINOR_REVISION
Indicates MARF minor development revision, like 1.1.1.1. |
static int |
MINOR_VERSION
Indicates minor MARF version, like 1.1.x. |
static int |
REVISION
Indicates MARF revision, like 1.1.1. |
| Constructor Summary | |
|---|---|
Version()
|
|
| Method Summary | |
|---|---|
static double |
getDoubleVersion()
Retrieves double version of MARF. |
static int |
getIntVersion()
Returns an integer representation of the MARF version. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
static java.lang.String |
getStringVersion()
Returns a string representation of the MARF version. |
static java.lang.String |
getStringVersion(double pdDoubleVersion)
Returns a string representation of the MARF version given its floating point equivalent. |
static java.lang.String |
getStringVersion(int piIntVersion)
Returns a string representation of the MARF version given its integer equivalent. |
static void |
validateVersions(double pdDoubleVersion)
Makes sure the applications aren't run against older MARF version. |
static void |
validateVersions(double pdDoubleVersion,
boolean pbExactMatch)
Makes sure the applications aren't run against an older MARF or exact matching library version. |
static void |
validateVersions(int piIntVersion)
Makes sure the applications aren't run against older MARF version. |
static void |
validateVersions(int piIntVersion,
boolean pbExactMatch)
Makes sure the applications aren't run against an older MARF or exact matching library version. |
static void |
validateVersions(java.lang.String pstrStringVersion)
Makes sure the applications aren't run against older MARF version. |
static void |
validateVersions(java.lang.String pstrStringVersion,
boolean pbExactMatch)
Makes sure the applications aren't run against an older MARF or exact matching library version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static final int REVISION
public static final int MINOR_REVISION
MINOR_VERSION,
Constant Field Values| Constructor Detail |
|---|
public Version()
| Method Detail |
|---|
public static final java.lang.String getStringVersion()
MINOR_REVISIONpublic static final java.lang.String getStringVersion(double pdDoubleVersion)
pdDoubleVersion - the floating point equivalent of the version
public static final java.lang.String getStringVersion(int piIntVersion)
piIntVersion - the integer equivalent of the version
public static final int getIntVersion()
MAJOR_VERSION * 1000 + MINOR_VERSION * 100 + REVISION * 10 + MINOR_REVISIONMAJOR_VERSION,
MINOR_VERSION,
REVISION,
MINOR_REVISIONpublic static final double getDoubleVersion()
MAJOR_VERSION * 100 + MINOR_VERSION * 10 + REVISION + MINOR_REVISION / 10MAJOR_VERSION,
MINOR_VERSION,
REVISION,
MINOR_REVISION
public static final void validateVersions(double pdDoubleVersion)
throws MARFException
pdDoubleVersion - floating point version representation to validate
MARFException - if the MARF's version is too old
public static final void validateVersions(double pdDoubleVersion,
boolean pbExactMatch)
throws MARFException
pdDoubleVersion - floating point version representation to validatepbExactMatch - if set to true the exact version match will be required
MARFException - if the MARF's version is too old or isn't matching
public static final void validateVersions(int piIntVersion)
throws MARFException
piIntVersion - integer version representation to validate
MARFException - if the MARF library's version is too old
public static final void validateVersions(int piIntVersion,
boolean pbExactMatch)
throws MARFException
piIntVersion - integer version representation to validatepbExactMatch - if set to true the exact version match will be required
MARFException - if the MARF library's version is too old or isn't matching
public static final void validateVersions(java.lang.String pstrStringVersion)
throws MARFException
pstrStringVersion - String representation of the required version
MARFException - if the MARF's version is too old
java.lang.NullPointerException - if the parameter is null
public static final void validateVersions(java.lang.String pstrStringVersion,
boolean pbExactMatch)
throws MARFException
pstrStringVersion - String version representation to validatepbExactMatch - if set to true the exact version match will be required
MARFException - if the MARF's version is too old or isn't matchingpublic static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||