IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.product.metadata.im
Class IMVersion

java.lang.Object
  extended by com.ibm.websphere.product.metadata.im.IMVersion

public class IMVersion
extends java.lang.Object

This class represents the version in IBM Install Manager format.

Version:
8.0

Constructor Summary
IMVersion(org.w3c.dom.Node versionNode)
          IBM WEBSPHERE INTERNAL USE ONLY.
IMVersion(java.lang.String imVersion)
          IBM WEBSPHERE INTERNAL USE ONLY.
 
Method Summary
 int compareIMVersion(IMVersion versionToBeCompared)
          Compare the version of this IMVersion object with the input one.
 int compareWASVersion(java.lang.String wasVersionToBeCompared)
          Compare the version in IBM WebSphere format of this IMVersion object with the input one.
 java.util.Date getDate()
          Returns the date information of the current IMVersion object.
 java.lang.String getDateInString()
          Returns the date information of the current IMVersion object in String.
 java.lang.String getIMVersion()
          Returns the version in IBM Install Manager format.
 java.lang.String getWASVersion()
          Returns the version in IBM WebSphere format.
 int hashCode()
          Returns hashcode of this object.
 java.lang.String toString()
          Returns the string represenation of version in IBM install Manager format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IMVersion

public IMVersion(java.lang.String imVersion)
IBM WEBSPHERE INTERNAL USE ONLY. Constructor.


IMVersion

public IMVersion(org.w3c.dom.Node versionNode)
IBM WEBSPHERE INTERNAL USE ONLY. Constructor.

Method Detail

compareIMVersion

public int compareIMVersion(IMVersion versionToBeCompared)
Compare the version of this IMVersion object with the input one.

Parameters:
versionToBeCompared - The IMVersion object to be compared with.

Returns:
1 if the current version is larger than versionToBeCompared. -1 if the current version is smaller than versionToBeCompared. 0 if they are equal.

compareWASVersion

public int compareWASVersion(java.lang.String wasVersionToBeCompared)
Compare the version in IBM WebSphere format of this IMVersion object with the input one.

Parameters:
wasVersionToBeCompared - The version in IBM WebSphere format to be compared with.

Returns:
1 if the current version is larger than wasVersionToBeCompared. -1 if the current version is smaller than wasVersionToBeCompared. 0 if they are equal.

getDate

public java.util.Date getDate()
Returns the date information of the current IMVersion object.

Returns:
the date information of the current IMVersion object.

getDateInString

public java.lang.String getDateInString()
Returns the date information of the current IMVersion object in String.

Returns:
the date information of the current IMVersion object in String.

getIMVersion

public java.lang.String getIMVersion()
Returns the version in IBM Install Manager format.

Returns:
the version in IBM Install Manager format.

getWASVersion

public java.lang.String getWASVersion()
Returns the version in IBM WebSphere format.

Returns:
the version in IBM WebSphere format.

hashCode

public int hashCode()
Returns hashcode of this object. The int value is based on the string representation of this object, which is the version in IM format.

Overrides:
hashCode in class java.lang.Object
Returns:
Integer value of the hashcode of this object.

toString

public java.lang.String toString()
Returns the string represenation of version in IBM install Manager format.

Overrides:
toString in class java.lang.Object
Returns:
string represenation of version in IBM install Manager format.

IBM WebSphere Application ServerTM
Release 8