@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class Version extends java.lang.Object
getProductName()
instead of PRODUCT_NAME
).Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILD_TIMESTAMP
A timestamp that indicates when this build of the LDAP SDK was generated.
|
static java.lang.String |
FULL_VERSION_STRING
The full version string for the LDAP SDK.
|
static int |
MAJOR_VERSION
The major version number for the LDAP SDK.
|
static int |
MINOR_VERSION
The minor version number for the LDAP SDK.
|
static java.lang.String |
NUMERIC_VERSION_STRING
The version number string for the LDAP SDK, which contains just the major,
minor, and point version, and optional version qualifier.
|
static int |
POINT_VERSION
The point version number for the LDAP SDK.
|
static java.lang.String |
PRODUCT_NAME
The official full product name for the LDAP SDK.
|
static java.lang.String |
REPOSITORY_PATH
The path to the LDAP SDK source code in the repository.
|
static java.lang.String |
REPOSITORY_TYPE
The type of repository from which the source code used to build the LDAP
SDK was retrieved.
|
static java.lang.String |
REPOSITORY_URL
The URL for the repository from which the source code used to build the
LDAP SDK was retrieved.
|
static java.lang.String |
REVISION_ID
The string representation of the source revision from which this build of
the LDAP SDK was generated.
|
static long |
REVISION_NUMBER
Deprecated.
Use the
REVISION_ID property instead, since it can
handle non-numeric revision identifiers. |
static java.lang.String |
SHORT_NAME
The short product name for the LDAP SDK.
|
static java.lang.String |
SHORT_VERSION_STRING
The short version string for the LDAP SDK.
|
static java.lang.String |
VERSION_QUALIFIER
The version qualifier string for the LDAP SDK.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBuildTimestamp()
Retrieves a timestamp that indicates when this build of the LDAP SDK was
generated.
|
static java.lang.String |
getFullVersionString()
Retrieves the full version string for the LDAP SDK.
|
static int |
getMajorVersion()
Retrieves the major version number for the LDAP SDK.
|
static int |
getMinorVersion()
Retrieves the minor version number for the LDAP SDK.
|
static java.lang.String |
getNumericVersionString()
Retrieves the version number string for the LDAP SDK, which contains just
the major, minor, and point version, and optional version qualifier.
|
static int |
getPointVersion()
Retrieves the point version number for the LDAP SDK.
|
static java.lang.String |
getProductName()
Retrieves the official full product name for the LDAP SDK.
|
static java.lang.String |
getRepositoryPath()
Retrieves the path to the LDAP SDK source code in the repository.
|
static java.lang.String |
getRepositoryType()
Retrieves the type of repository from which the source code used to build
the LDAP SDK was retrieved.
|
static java.lang.String |
getRepositoryURL()
Retrieves the URL for the repository from which the source code used to
build the LDAP SDK was retrieved.
|
static java.lang.String |
getRevisionID()
Retrieves the string representation of the source revision from which this
build of the LDAP SDK was generated.
|
static java.lang.String |
getShortName()
Retrieves the short product name for the LDAP SDK.
|
static java.lang.String |
getShortVersionString()
Retrieves the short version string for the LDAP SDK.
|
static java.util.List<java.lang.String> |
getVersionLines()
Retrieves a list of lines containing information about the LDAP SDK
version.
|
static java.lang.String |
getVersionQualifier()
Retrieves the version qualifier string for the LDAP SDK.
|
static void |
main(java.lang.String... args)
Prints version information from this class to standard output.
|
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String SHORT_NAME
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static final int POINT_VERSION
public static final java.lang.String VERSION_QUALIFIER
public static final java.lang.String BUILD_TIMESTAMP
public static final java.lang.String REPOSITORY_TYPE
public static final java.lang.String REPOSITORY_URL
public static final java.lang.String REPOSITORY_PATH
public static final java.lang.String REVISION_ID
@Deprecated public static final long REVISION_NUMBER
REVISION_ID
property instead, since it can
handle non-numeric revision identifiers.public static final java.lang.String FULL_VERSION_STRING
public static final java.lang.String SHORT_VERSION_STRING
public static final java.lang.String NUMERIC_VERSION_STRING
public static void main(java.lang.String... args)
args
- The command-line arguments provided to this program.public static java.lang.String getProductName()
public static java.lang.String getShortName()
public static int getMajorVersion()
public static int getMinorVersion()
public static int getPointVersion()
public static java.lang.String getVersionQualifier()
public static java.lang.String getBuildTimestamp()
public static java.lang.String getRepositoryType()
public static java.lang.String getRepositoryURL()
public static java.lang.String getRepositoryPath()
public static java.lang.String getRevisionID()
public static java.lang.String getFullVersionString()
public static java.lang.String getShortVersionString()
public static java.lang.String getNumericVersionString()
public static java.util.List<java.lang.String> getVersionLines()