com.isti.util.updatechecker
Class UpdateInformation

java.lang.Object
  extended by com.isti.util.updatechecker.UpdateInformation
All Implemented Interfaces:
java.lang.Comparable

public class UpdateInformation
extends java.lang.Object
implements java.lang.Comparable

Class UpdateInformation defines information needed for doing an update.


Constructor Summary
UpdateInformation(IstiVersion version, java.lang.String versionDate, java.lang.String features, java.lang.String importantUpdateReason, UpdateAction[] updateActions)
          Constructs update information.
UpdateInformation(java.lang.String versionString, java.lang.String versionDate, java.lang.String features, java.lang.String importantUpdateReason, UpdateAction[] updateActions)
          Constructs update information.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this UpdateInformation with the specified UpdateInformation.
 int compareTo(UpdateInformation o)
          Compares this UpdateInformation with the specified UpdateInformation.
 java.lang.String getFeatures()
          Gets the features.
 java.lang.String getImportantUpdateReason()
          Gets the fundamental reason to install this update.
 UpdateAction[] getUpdateActions()
          Gets the update actions.
 IstiVersion getVersion()
          Gets the version.
 java.lang.String getVersionDate()
          Gets the version date.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateInformation

public UpdateInformation(java.lang.String versionString,
                         java.lang.String versionDate,
                         java.lang.String features,
                         java.lang.String importantUpdateReason,
                         UpdateAction[] updateActions)
Constructs update information.

Parameters:
versionString - the version string.
versionDate - the version date.
features - the features.
importantUpdateReason - the fundamental reason to install this update.
updateActions - the update actions.

UpdateInformation

public UpdateInformation(IstiVersion version,
                         java.lang.String versionDate,
                         java.lang.String features,
                         java.lang.String importantUpdateReason,
                         UpdateAction[] updateActions)
Constructs update information.

Parameters:
version - the version.
versionDate - the version date.
features - the features.
importantUpdateReason - the fundamental reason to install this update.
updateActions - the update actions.
Method Detail

getVersion

public IstiVersion getVersion()
Gets the version.

Returns:
the version.

getVersionDate

public java.lang.String getVersionDate()
Gets the version date.

Returns:
the version date.

getUpdateActions

public UpdateAction[] getUpdateActions()
Gets the update actions.

Returns:
an array of update actions.

getFeatures

public java.lang.String getFeatures()
Gets the features.

Returns:
the features.

getImportantUpdateReason

public java.lang.String getImportantUpdateReason()
Gets the fundamental reason to install this update.

Returns:
the fundamental reason to install this update.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

compareTo

public int compareTo(java.lang.Object o)
Compares this UpdateInformation with the specified UpdateInformation. If the specified Object is a UpdateInformation, this function behaves like compareTo(UpdateInformation). Otherwise, it throws a ClassCastException (as Versions are comparable only to other Versions).

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the Object to be compared.
Returns:
the value 0 if the versions are equal; a value less than 0 if this version is less than the specified version; and a value greater than 0 if this version is greater than the specified version.
Throws:
ClassCastException - if the argument is not a UpdateInformation.

compareTo

public int compareTo(UpdateInformation o)
Compares this UpdateInformation with the specified UpdateInformation.

Parameters:
o - the Object to be compared.
Returns:
the value 0 if the versions are equal; a value less than 0 if this version is less than the specified version; and a value greater than 0 if this version is greater than the specified version.