public class VersionInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILD_MODE |
static java.lang.String |
BUILD_VERSION |
static java.lang.String |
COMPONENT_NUMBER |
static java.lang.String |
PACKAGE_NAME |
static java.lang.String |
RELEASE_DESCRIPTION |
static java.lang.String |
SOURCE_URL |
Constructor and Description |
---|
VersionInfo() |
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
getProperties(java.lang.Class versionClass)
Provide all the package version information of a class
|
static java.util.Properties |
getProperties(java.lang.Object versionObject)
Provide all the package version information of an object
|
static java.util.Properties |
getProperties(java.lang.String versionPackage)
Provide all the package version information of a class or package
represented by a String
|
static java.lang.String |
getProperty(java.lang.Class versionClass,
java.lang.String key)
Provide a particular version information value for a class
|
static java.lang.String |
getProperty(java.lang.Object versionObject,
java.lang.String key)
Provide a particular version information value for an object
|
static java.lang.String |
getProperty(java.lang.String versionPackage,
java.lang.String key)
Provide a particular version information value of a class or package
represented by a String
|
public static final java.lang.String BUILD_VERSION
public static final java.lang.String COMPONENT_NUMBER
public static final java.lang.String RELEASE_DESCRIPTION
public static final java.lang.String BUILD_MODE
public static final java.lang.String PACKAGE_NAME
public static final java.lang.String SOURCE_URL
public static java.util.Properties getProperties(java.lang.Class versionClass)
versionClass
- the class to get the version information forpublic static java.util.Properties getProperties(java.lang.Object versionObject)
versionObject
- the object to get the version information forpublic static java.util.Properties getProperties(java.lang.String versionPackage)
versionPackage
- the package to get the version information forpublic static java.lang.String getProperty(java.lang.Class versionClass, java.lang.String key)
versionClass
- the class to get the version information forkey
- the key for the requested valuepublic static java.lang.String getProperty(java.lang.Object versionObject, java.lang.String key)
versionObject
- the object to get the version information forkey
- the key for the requested valuepublic static java.lang.String getProperty(java.lang.String versionPackage, java.lang.String key)
versionPackage
- the package to get the version information forkey
- the key for the requested value