com.isti.util.updatechecker
Class LocationUpdate

java.lang.Object
  extended by com.isti.util.updatechecker.LocationUpdate
All Implemented Interfaces:
UpdateAction

public class LocationUpdate
extends java.lang.Object
implements UpdateAction

Class LocationUpdate defines methods for doing an update.


Constructor Summary
LocationUpdate(java.lang.String description, java.lang.String location)
          Constructs a location update.
 
Method Summary
 java.lang.String getDescription()
          Gets a description string for option display.
 java.lang.String getLocation()
          Gets the location of the installer.
 boolean run()
          Run the update.
 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

LocationUpdate

public LocationUpdate(java.lang.String description,
                      java.lang.String location)
Constructs a location update.

Parameters:
description - the description of the update.
location - the location of the installer.
Method Detail

getDescription

public java.lang.String getDescription()
Gets a description string for option display.

Specified by:
getDescription in interface UpdateAction
Returns:
a description string for option display.

getLocation

public java.lang.String getLocation()
Gets the location of the installer.

Returns:
the location of the installer.

run

public boolean run()
Run the update.

Specified by:
run in interface UpdateAction
Returns:
true on success, false otherwise.

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.