|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ListOfSkills
Represents a list of employee skills.
Field Summary | |
private java.util.Vector |
data
A vector of skills |
Constructor Summary | |
ListOfSkills()
Constructs an empty list of skills |
|
ListOfSkills(java.util.Vector skills)
Construct a list of skills from a vector of skills |
Method Summary | |
void |
AddSkill(Skills toAdd)
Add a skill to the list. |
java.lang.Object |
clone()
Creates a copy of the current object |
Skills |
GetSkill(java.lang.String skillName)
Get a particular skill from a list. |
java.lang.String[] |
GetSkillNames()
Gets the names of all the skills in the list |
boolean |
IsIn(Skills toCheck)
Checks to see if a skill is in the list |
void |
RemoveSkills(ListOfSkills toRemove)
Removes skills from the list |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector data
Constructor Detail |
public ListOfSkills()
Pre-conditions: none
Post-conditions: The vector of data for this class is initialized.
public ListOfSkills(java.util.Vector skills)
Pre-conditions: none
Post-conditions: The private vector of date for this class is set to the passed vector.
skills
- a vector of skills to be added to the new listMethod Detail |
public void AddSkill(Skills toAdd)
Pre-conditions: A valid variable of type Skills is passed.
Post-conditions: The private variable is set to the passed variable.
toAdd
- skill to add to the listpublic void RemoveSkills(ListOfSkills toRemove)
Pre-conditions: A valid variable of type ListOfSkills is passed.
Post-conditions: If the passed skills exist in the private vector, they are removed.
toRemove
- a list of skills to removepublic java.lang.String[] GetSkillNames()
Pre-conditions: none
Post-conditions: The list of skills is returned as an array of skills.
public Skills GetSkill(java.lang.String skillName)
Pre-conditions: A valid variable of type String is passed containing a valid skill name.
Post-conditions: If the passed skill's name is found in the private vector of skills,
a variable of type Skills is returned.
skillName
- the name of the skill to getpublic boolean IsIn(Skills toCheck)
Pre-conditions: A valid variable of type Skills is passed.
Post-conditions: If the passed variable is found in the vector of skills,
then True is returned. Otherwise False is returned.
toCheck
- skill to look for in the list (Searches by name)public java.lang.Object clone()
Pre-conditions: none
Post-conditions: A copy of the current ListOfEmployees object is returned.
clone
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |