com.ibm.websphere.product.metadata.im
Class IMVersion
- java.lang.Object
com.ibm.websphere.product.metadata.im.IMVersion
- public class IMVersion
- extends java.lang.Object
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 |
---|---|
|
compareIMVersion(IMVersion versionToBeCompared)
Compare the version of this IMVersion object with the input one.
|
|
compareWASVersion(java.lang.String wasVersionToBeCompared)
Compare the version in IBM WebSphere format of this IMVersion object with the input one.
|
|
getDate()
Returns the date information of the current IMVersion object.
|
|
getDateInString()
Returns the date information of the current IMVersion object in String.
|
|
getIMVersion()
Returns the version in IBM Install Manager format.
|
|
getWASVersion()
Returns the version in IBM WebSphere format.
|
|
hashCode()
Returns hashcode of this object.
|
|
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.