|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.UpdateInstaller.InstalledComponent
public class InstalledComponent
Represents an installed component in TDI. The only other information in this object is a list of fixes that have been applied to the component.
| Field Summary | |
|---|---|
protected Vector<String> |
fixes
Fixes that have been applied to this component |
| Constructor Summary | |
|---|---|
InstalledComponent(String name)
Creates a InstalledComponent with the given name |
|
| Method Summary | |
|---|---|
void |
addFix(int pos,
String fixName)
Adds the name of a fix to the specified position in the list of fixes that have been applied to this component. |
void |
addFix(String fixName)
Adds the name of a fix to the end of the list of fixes that have been applied to this component. |
boolean |
equals(Object obj)
Tells if two InstalledComponents are equal by comparing their names. |
boolean |
equals(String name)
Tells if two InstalledComponents are equal by comparing their names. |
Object[] |
getFixes()
Gets the list of fixes applied to this component as an array. |
String |
getName()
Gets the name of this component. |
int |
hashCode()
Computes this InstalledComponent's hash code. |
boolean |
isFirstFix(String fixname)
Determines if the given fix is the most recently applied. |
boolean |
isFixInstalled(String fixname)
Determines if the given fixname has been applied. |
int |
posOfFixInstalled(String fixname)
Determines if and where the given fixname has been applied. |
int |
remove(String fixName)
Removes a fix from this component's list. |
void |
removeAll()
Clears the list of applied fixes for this component. |
void |
setName(String name)
Sets the name of this component. |
String |
toString()
Converts the current object to a String for printing. |
void |
writeFixes(PrintWriter outfile)
Write this component's information in the appropriate format to specified open file. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Vector<String> fixes
| Constructor Detail |
|---|
public InstalledComponent(String name)
name - Name of the component| Method Detail |
|---|
public void setName(String name)
name - Name of the componentpublic String getName()
public void addFix(int pos,
String fixName)
pos - Position to add this fix in the listfixName - Name of the fixpublic void addFix(String fixName)
fixName - Name of the fixpublic Object[] getFixes()
public int remove(String fixName)
fixName - The name of the fix to remove
public void removeAll()
public int posOfFixInstalled(String fixname)
fixname - Name of the fix
public boolean isFixInstalled(String fixname)
fixname - Name of the fix
public boolean isFirstFix(String fixname)
fixname - Name of the fix
public boolean equals(String name)
name - A String with the name of the component to compare
public boolean equals(Object obj)
equals in class Objectobj - An InstalledComponent to compare
public int hashCode()
hashCode in class Objectpublic void writeFixes(PrintWriter outfile)
outfile - The file that is being createdpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||