| java.lang.Object org.jivesoftware.util.Version
Version | public class Version (Code) | | Holds version information for Openfire.
author: Iain Shigeoka |
Inner Class :public enum ReleaseStatus | |
Constructor Summary | |
public | Version(int major, int minor, int micro, ReleaseStatus status, int statusVersion) Create a new version information object. |
Method Summary | |
public int | getMajor() Obtain the major release number for this product. | public int | getMicro() Obtain the micro release number for this product. | public int | getMinor() Obtain the minor release number for this product. | public ReleaseStatus | getStatus() Returns the release status of this product. | public int | getStatusVersion() Obtain the status relase number for this product. | public String | getVersionString() Returns the version number of this instance of Openfire as a
String (ie major.minor.revision). |
Version | public Version(int major, int minor, int micro, ReleaseStatus status, int statusVersion)(Code) | | Create a new version information object.
Parameters: major - the major release number. Parameters: minor - the minor release number. Parameters: micro - the micro release number. Parameters: status - the status of the release. |
getMajor | public int getMajor()(Code) | | Obtain the major release number for this product.
The major release number 1.x.x |
getMicro | public int getMicro()(Code) | | Obtain the micro release number for this product.
The micro release number x.x.1 |
getMinor | public int getMinor()(Code) | | Obtain the minor release number for this product.
The minor release number x.1.x |
getStatus | public ReleaseStatus getStatus()(Code) | | Returns the release status of this product.
the release status of this product. |
getStatusVersion | public int getStatusVersion()(Code) | | Obtain the status relase number for this product. For example, if
the release status is alpha the release may be 5
resulting in a release status of Alpha 5.
The status version or -1 if none is set. |
getVersionString | public String getVersionString()(Code) | | Returns the version number of this instance of Openfire as a
String (ie major.minor.revision).
The version as a string |
|
|