org.clapper.util.misc
Class Version

java.lang.Object
  extended by org.clapper.util.misc.VersionBase
      extended by org.clapper.util.misc.Version

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.

Version:
$Revision: 6940 $
Author:
Copyright © 2004-2007 Brian M. Clapper

Field Summary
static java.lang.String BUILD_INFO_BUNDLE_NAME
          The name of the resource bundle containing the build info.
 
Method Summary
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
 
Methods inherited from class org.clapper.util.misc.VersionBase
getApplicationName, getCopyright, getVersion, getVersionDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_INFO_BUNDLE_NAME

public static final java.lang.String BUILD_INFO_BUNDLE_NAME
The name of the resource bundle containing the build info.

See Also:
Constant Field Values
Method Detail

getInstance

public static Version getInstance()
Get an instance of this class.

Returns:
a singleton instance of this class.

getVersionBundleName

protected java.lang.String getVersionBundleName()
Get the class name of the version resource bundle, which contains values for the product version, copyright, etc.

Specified by:
getVersionBundleName in class VersionBase
Returns:
the name of the version resource bundle

getBuildInfoBundleName

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().

Specified by:
getBuildInfoBundleName in class VersionBase
Returns:
the name of the build info resource bundle

getVersionKey

protected java.lang.String getVersionKey()
Get the key for the version string. This key is presumed to be in the version resource bundle.

Specified by:
getVersionKey in class VersionBase
Returns:
the version string key

getCopyrightKey

protected java.lang.String getCopyrightKey()
Get the key for the copyright string. This key is presumed to be in the version resource bundle.

Specified by:
getCopyrightKey in class VersionBase
Returns:
the copyright string key

getApplicationNameKey

protected java.lang.String getApplicationNameKey()
Get the key for the name of the utility or application.

Specified by:
getApplicationNameKey in class VersionBase
Returns:
the key

main

public static void main(java.lang.String[] args)
Display the build information

Parameters:
args - command-line parameters (ignored)


Copyright © 2004-2007 Brian M. Clapper. All Rights Reserved.