All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.mitre.cvw.mcp.Version

java.lang.Object
   |
   +----org.mitre.cvw.mcp.Version

public class Version
extends Object
The MOO Client Protocol Message Version object.

A MOO Client Protocol versions consist of a major and minor number which are separated by a period.


Constructor Index

 o Version(int, int)
Create a version from two integers, a major version number and a minor version number.
 o Version(String)
Create a version from a string.

Method Index

 o geq(Version)
Version ordering--greater than or equal to.
 o toString()
 o version(Version, Version, Version, Version)
Return the highest version of the overlapping versions ranges, null if none.

Constructors

 o Version
 public Version(int maj,
                int min)
Create a version from two integers, a major version number and a minor version number.

 o Version
 public Version(String versionStr)
Create a version from a string. The string should contain two integers separated by a period.

Methods

 o geq
 public boolean geq(Version version)
Version ordering--greater than or equal to.

 o version
 public static Version version(Version server_min,
                               Version server_max,
                               Version client_min,
                               Version client_max)
Return the highest version of the overlapping versions ranges, null if none.

Parameters:
server_min - the minimal version supported by the server
server_max - the maximal version supported by the server
client_min - the minimal version supported by the client
client_max - the maximal version supported by the client
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index