com.ibm.workflow.servlet.client
Class Version

java.lang.Object
  |
  +--com.ibm.workflow.servlet.client.Version

public final class Version
extends java.lang.Object

This class serves as an interface to the version-related methods of java.lang.Package. It encapsulates the details of loading the correct package information from the manifest file. Note that this class' package name must match the one specified in the manifest file.


Constructor Summary
Version()
          Constructs a new version object for the WebSphere Workflow main package.
 
Method Summary
 java.lang.String getImplementationVersion()
          Return the version of this WebSphere Workflow implementation.
static java.lang.String getPackageName()
          Return the 'main' package name (e.g.
 java.lang.String getSpecificationTitle()
          Returns the title of the implemented WebSphere Workflow specification.
 java.lang.String getSpecificationVersion()
          Returns the version number of the implemented WebSphere Workflow specification.
static void main(java.lang.String[] args)
          Dumps the version information for WebSphere Workflow.
 java.lang.String toString()
          Convert this object to a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version()
Constructs a new version object for the WebSphere Workflow main package.
Method Detail

main

public static void main(java.lang.String[] args)
Dumps the version information for WebSphere Workflow. Can be invoked as
 java com.ibm.workflow.flw.Version
 
Parameters:
args - Ignored.

toString

public java.lang.String toString()
Convert this object to a string.
Overrides:
toString in class java.lang.Object
Returns:
The version information from the .jar's manifest file.

getPackageName

public static java.lang.String getPackageName()
Return the 'main' package name (e.g. com.ibm.workflow.flw). When the name of the package for generated classes is needed, use JavaUtilities.getGenPackageName().
Returns:
The name of the main package.

getSpecificationTitle

public java.lang.String getSpecificationTitle()
Returns the title of the implemented WebSphere Workflow specification.
Returns:
The specification title, null is returned if it is not known.

getSpecificationVersion

public java.lang.String getSpecificationVersion()
Returns the version number of the implemented WebSphere Workflow specification. The version string is a sequence of positive decimal integers separated by "."'s and may have leading zeros. When version strings are compared the most significant numbers are compared.
Returns:
The specification version, null is returned if it is not known.
See Also:
Package.isCompatibleWith(java.lang.String)

getImplementationVersion

public java.lang.String getImplementationVersion()
Return the version of this WebSphere Workflow implementation. It may consist of any string and does not have any particular syntax specified or expected by the Java runtime.
Returns:
The implementation version, null is returned if it is not known.


© Copyright IBM Corporation 1999, 2007. All Rights Reserved.