soaprmi
Class Version

java.lang.Object
  extended bysoaprmi.Version

public class Version
extends java.lang.Object

Allow to detect and check for required version of XSOAP. See bug 42 for more background and motivation for this function.

Version:
$Revision: 1.23 $ $Date: 2004/05/07 12:36:57 $ (GMT)
Author:
Aleksander Slominski [http://www.extreme.indiana.edu/~aslom]

Constructor Summary
Version()
           
 
Method Summary
static java.lang.String getImplementationVersion()
          This is just string that is useful to print major verion of XSOAP.
static java.lang.String getSpecificationVersion()
          This is just string that identies current implementation verion.
static int[] parseVersion(java.lang.String version)
          Parse verion string N.M[.K] into thre subcomponents (M=major,N=minor,K=increment) that are returned in array with three elements.
static void require(java.lang.String version)
          Version mut be of form M.N[.K] where M is major version, N is minor version and K is icrement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Version

public Version()
Method Detail

getSpecificationVersion

public static java.lang.String getSpecificationVersion()
                                                throws IncompatibleVersionException
This is just string that identies current implementation verion.

NOTE:

Throws:
IncompatibleVersionException

getImplementationVersion

public static java.lang.String getImplementationVersion()
This is just string that is useful to print major verion of XSOAP.


require

public static void require(java.lang.String version)
                    throws IncompatibleVersionException
Version mut be of form M.N[.K] where M is major version, N is minor version and K is icrement. This method returns true if current major version is the same and minor is bigger or equal to current minor verion. If provided major and minor verisons are equals to current version then increment is also checked and check is passed when increment is bigger or equal to current increment version.

Throws:
IncompatibleVersionException

parseVersion

public static int[] parseVersion(java.lang.String version)
                          throws java.lang.NumberFormatException
Parse verion string N.M[.K] into thre subcomponents (M=major,N=minor,K=increment) that are returned in array with three elements. M and N must be non negative, and K if present must be positive integer. Increment K is optional and if not present in verion strig it is returned as zero.

Throws:
java.lang.NumberFormatException


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.