public final class Version extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BUILD_DATE |
static String |
BUILD_ID |
static String |
BUILD_JVM_VENDOR |
static String |
BUILD_JVM_VERSION |
static String |
BUILD_NUMBER |
static String |
BUILD_OS |
static String |
BUILD_OS_ARCH |
static String |
BUILD_OS_VERSION |
static String |
VERSION_CVSTAG |
static String |
VERSION_MAJOR |
static String |
VERSION_MINOR |
static String |
VERSION_NAME |
static String |
VERSION_REVISION |
static String |
VERSION_TAG |
| Modifier and Type | Method and Description |
|---|---|
String |
getBuildDate()
Returns the build date for this version.
|
String |
getBuildID()
Returns the build identifier for this version.
|
String |
getBuildJVM()
Returns the BUILD_JVM_VERSION (BUILD_JVM_VENDOR) which should look like:
1.4.2_05-b04 (Sun Microsystems Inc.)
|
String |
getBuildNumber()
Returns the build number for this version.
|
String |
getBuildOS()
Returns the BUILD_OS (BUILD_OS_ARCH,BUILD_OS_VERSION) which should look
like:
Windows XP (x86,5.1)
Linux (i386,2.4.21-4.ELsmp)
|
String |
getCvsTag()
Returns the CVS tag of the version.
|
static Version |
getInstance()
Get the single Version instance.
|
int |
getMajor()
Returns the major number of the version.
|
int |
getMinor()
Returns the minor number of the version.
|
String |
getName()
Returns the name number of the version.
|
Map<Object,Object> |
getProperties()
Returns an unmodifiable map of version properties.
|
String |
getProperty(String name)
Returns the value for the given property name.
|
int |
getRevision()
Returns the revision number of the version.
|
String |
getTag()
Returns the tag of the version.
|
String |
getVersionNumber()
Returns the full version number, e.g.
|
String |
toString()
Returns the version information as a string.
|
public static final String VERSION_MAJOR
public static final String VERSION_MINOR
public static final String VERSION_REVISION
public static final String VERSION_TAG
public static final String VERSION_NAME
public static final String VERSION_CVSTAG
public static final String BUILD_NUMBER
public static final String BUILD_ID
public static final String BUILD_DATE
public static final String BUILD_JVM_VERSION
public static final String BUILD_JVM_VENDOR
public static final String BUILD_OS
public static final String BUILD_OS_ARCH
public static final String BUILD_OS_VERSION
public static Version getInstance()
public Map<Object,Object> getProperties()
public String getProperty(String name)
name - - The name of the property.public int getMajor()
public int getMinor()
public int getRevision()
public String getTag()
public String getCvsTag()
public String getName()
public String getBuildID()
public String getBuildNumber()
public String getBuildDate()
public String getBuildJVM()
public String getBuildOS()
public String getVersionNumber()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.