All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.products.Installable

java.lang.Object
   |
   +----com.sun.install.products.Installable

public class Installable
extends Object
implements Serializable
Installable is a class that describes, in a very simple fashion, anything that can be installed. Installables include a product, a feature, and a component.


Constructor Index

 o Installable()
Create an installable.
 o Installable(String, String, String)
Create an installable with the specified GUID, version, and install location.

Method Index

 o equals(Object)
Compares two Installables.
 o getGUID()
Returns the guid identifying this installable.
 o getInstallLocation()
Returns the install location of this installable.
 o getVersion()
Returns the version of this installable.
 o hashCode()
Returns a hashcode for this installable.
 o setGUID(String)
Sets the guid that uniquely identifies this installable.
 o setInstallLocation(String)
Sets the install location of this installable.
 o setVersion(String)
Sets the version of this installable.
 o toString()
Returns a string representation of this object.

Constructors

 o Installable
 public Installable()
Create an installable.

 o Installable
 public Installable(String guid,
                    String version,
                    String installLocation)
Create an installable with the specified GUID, version, and install location.

Parameters:
guid - The global unique identifier for this installable.
version - The version of this installable.
installLocation - The location on the file system where this installable is/will be installed.

Methods

 o getGUID
 public String getGUID()
Returns the guid identifying this installable.

Returns:
This installable's guid.
 o setGUID
 public void setGUID(String guid)
Sets the guid that uniquely identifies this installable.

Parameters:
guid - The global unique identifier for this installable.
 o getVersion
 public String getVersion()
Returns the version of this installable.

Returns:
This installable's version.
 o setVersion
 public void setVersion(String version)
Sets the version of this installable.

Parameters:
version - The version of this installable.
 o getInstallLocation
 public String getInstallLocation()
Returns the install location of this installable.

Returns:
The install location.
 o setInstallLocation
 public void setInstallLocation(String installLocation)
Sets the install location of this installable.

Parameters:
installLocation - The location where this installable is/will be installed.
 o hashCode
 public int hashCode()
Returns a hashcode for this installable.

Returns:
A hash code value for this object.
Overrides:
hashCode in class Object
 o equals
 public boolean equals(Object anObject)
Compares two Installables. If guid, version, and install location are the same, then the two objects are the same.

Parameters:
anObject - Instance to compare to this instance.
Returns:
true if anObject is equal to this object. false otherwise.
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a string representation of this object.

Returns:
a string representation of this object.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index