com.ibm.websphere.product.metadata.im

Class IMVersion

  1. java.lang.Object
  2. extended bycom.ibm.websphere.product.metadata.im.IMVersion

  1. public class IMVersion
  2. extends java.lang.Object
This class represents the version in IBM Install Manager format.
Version:
8.0

Constructor Summary

Constructor and Description
IMVersion(org.w3c.dom.Node versionNode)
IBM WEBSPHERE INTERNAL USE ONLY.
IMVersion(java.lang.String imVersion)
IBM WEBSPHERE INTERNAL USE ONLY.

Method Summary

Modifier and Type Method and Description
  1. int
compareIMVersion(IMVersion versionToBeCompared)
Compare the version of this IMVersion object with the input one.
  1. int
compareWASVersion(java.lang.String wasVersionToBeCompared)
Compare the version in IBM WebSphere format of this IMVersion object with the input one.
  1. java.util.Date
getDate()
Returns the date information of the current IMVersion object.
  1. java.lang.String
getDateInString()
Returns the date information of the current IMVersion object in String.
  1. java.lang.String
getIMVersion()
Returns the version in IBM Install Manager format.
  1. java.lang.String
getWASVersion()
Returns the version in IBM WebSphere format.
  1. int
hashCode()
Returns hashcode of this object.
  1. 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

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

IMVersion

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

Method Detail

compareIMVersion

  1. 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

  1. 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

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

Returns:
the date information of the current IMVersion object.

getDateInString

  1. 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

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

Returns:
the version in IBM Install Manager format.

getWASVersion

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

Returns:
the version in IBM WebSphere format.

hashCode

  1. 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

  1. 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.