public final class Version extends VersionBase
Contains the software version for the org.clapper.util library. Also contains a main program which, invoked, displays the name of the API, the version, and detailed build information on standard output.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUILD_INFO_BUNDLE_NAME
The name of the resource bundle containing the build info.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getApplicationNameKey()
Get the key for the name of the utility or application.
|
protected java.lang.String |
getBuildInfoBundleName()
Get the class name of the build info resource bundle, which contains
data about when the product was built, generated (presumably)
during the build by
BuildInfo.makeBuildInfoBundle(). |
protected java.lang.String |
getCopyrightKey()
Get the key for the copyright string.
|
static Version |
getInstance()
Get an instance of this class.
|
protected java.lang.String |
getVersionBundleName()
Get the class name of the version resource bundle, which contains
values for the product version, copyright, etc.
|
protected java.lang.String |
getVersionKey()
Get the key for the version string.
|
static void |
main(java.lang.String[] args)
Display the build information
|
getApplicationName, getCopyright, getVersion, getVersionDisplaypublic static final java.lang.String BUILD_INFO_BUNDLE_NAME
public static Version getInstance()
protected java.lang.String getVersionBundleName()
getVersionBundleName in class VersionBaseprotected java.lang.String getBuildInfoBundleName()
BuildInfo.makeBuildInfoBundle().getBuildInfoBundleName in class VersionBaseprotected java.lang.String getVersionKey()
getVersionKey in class VersionBaseprotected java.lang.String getCopyrightKey()
getCopyrightKey in class VersionBaseprotected java.lang.String getApplicationNameKey()
getApplicationNameKey in class VersionBasepublic static void main(java.lang.String[] args)
args - command-line parameters (ignored)