|
||||||||||
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 java.util.Vector<java.lang.String> |
fixes
Fixes that have been applied to this component |
Constructor Summary | |
---|---|
InstalledComponent(java.lang.String name)
Creates a InstalledComponent with the given name |
Method Summary | |
---|---|
void |
addFix(int pos,
java.lang.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(java.lang.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(java.lang.Object obj)
Tells if two InstalledComponents are equal by comparing their names. |
boolean |
equals(java.lang.String name)
Tells if two InstalledComponents are equal by comparing their names. |
java.lang.Object[] |
getFixes()
Gets the list of fixes applied to this component as an array. |
java.lang.String |
getName()
Gets the name of this component. |
int |
hashCode()
Computes this InstalledComponent's hash code. |
boolean |
isFirstFix(java.lang.String fixname)
Determines if the given fix is the most recently applied. |
boolean |
isFixInstalled(java.lang.String fixname)
Determines if the given fixname has been applied. |
int |
posOfFixInstalled(java.lang.String fixname)
Determines if and where the given fixname has been applied. |
int |
remove(java.lang.String fixName)
Removes a fix from this component's list. |
void |
removeAll()
Clears the list of applied fixes for this component. |
void |
setName(java.lang.String name)
Sets the name of this component. |
java.lang.String |
toString()
Converts the current object to a String for printing. |
void |
writeFixes(java.io.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 java.util.Vector<java.lang.String> fixes
Constructor Detail |
---|
public InstalledComponent(java.lang.String name)
name
- Name of the componentMethod Detail |
---|
public void setName(java.lang.String name)
name
- Name of the componentpublic java.lang.String getName()
public void addFix(int pos, java.lang.String fixName)
pos
- Position to add this fix in the listfixName
- Name of the fixpublic void addFix(java.lang.String fixName)
fixName
- Name of the fixpublic java.lang.Object[] getFixes()
public int remove(java.lang.String fixName)
fixName
- The name of the fix to remove
public void removeAll()
public int posOfFixInstalled(java.lang.String fixname)
fixname
- Name of the fix
public boolean isFixInstalled(java.lang.String fixname)
fixname
- Name of the fix
public boolean isFirstFix(java.lang.String fixname)
fixname
- Name of the fix
public boolean equals(java.lang.String name)
name
- A String with the name of the component to compare
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- An InstalledComponent to compare
public int hashCode()
hashCode
in class java.lang.Object
public void writeFixes(java.io.PrintWriter outfile)
outfile
- The file that is being createdpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |