|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.UnitDirectory
public class UnitDirectory
Direcotory of all the units of the university.
Constructor Summary | |
---|---|
UnitDirectory()
Creates a new instance of UnivDirectory |
Method Summary | |
---|---|
void |
add(Person person)
Add a Person to the UniversityDirectory |
java.lang.Object |
clone()
Clone a new object |
java.lang.String |
displayUnit(int categorySelection)
Displays all people of a certain category: 1 - cis, 2 - education, 3 - library, 4 - hr, 5 - addmission. |
java.lang.String |
listAll()
List all people in the directory String Listing all members of the university. |
void |
remove(Person person)
Remove a Person from the UnitDirectory |
Person |
search(int id)
Search for a Person by ID. |
Person |
search(java.lang.String name)
Search for a Person by name. |
java.lang.String |
size()
Lists the how many people are in each unit. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitDirectory()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Throws CloneNotSupportedExceptionpublic void add(Person person)
add
in interface Directory
person
- The person to add to the UniversityDirectorypublic void remove(Person person)
remove
in interface Directory
person
- The person to remove from the UnitDirectorypublic java.lang.String listAll()
listAll
in interface Directory
public Person search(java.lang.String name)
search
in interface Directory
name
- the name of the Person
public Person search(int id)
search
in interface Directory
id
- the ID number of the Person
public java.lang.String displayUnit(int categorySelection)
public java.lang.String size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |