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.
-
Installable()
- Create an installable.
-
Installable(String, String, String)
- Create an installable with the specified GUID,
version, and install location.
-
equals(Object)
- Compares two Installables.
-
getGUID()
- Returns the guid identifying this installable.
-
getInstallLocation()
- Returns the install location of this installable.
-
getVersion()
- Returns the version of this installable.
-
hashCode()
- Returns a hashcode for this installable.
-
setGUID(String)
- Sets the guid that uniquely identifies this installable.
-
setInstallLocation(String)
- Sets the install location of this installable.
-
setVersion(String)
- Sets the version of this installable.
-
toString()
- Returns a string representation of this object.
Installable
public Installable()
- Create an installable.
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.
getGUID
public String getGUID()
- Returns the guid identifying this installable.
- Returns:
- This installable's guid.
setGUID
public void setGUID(String guid)
- Sets the guid that uniquely identifies this installable.
- Parameters:
- guid - The global unique identifier for this installable.
getVersion
public String getVersion()
- Returns the version of this installable.
- Returns:
- This installable's version.
setVersion
public void setVersion(String version)
- Sets the version of this installable.
- Parameters:
- version - The version of this installable.
getInstallLocation
public String getInstallLocation()
- Returns the install location of this installable.
- Returns:
- The install location.
setInstallLocation
public void setInstallLocation(String installLocation)
- Sets the install location of this installable.
- Parameters:
- installLocation - The location where this installable is/will be
installed.
hashCode
public int hashCode()
- Returns a hashcode for this installable.
- Returns:
- A hash code value for this object.
- Overrides:
- hashCode in class Object
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
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