|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.DirectoryFacade
public class DirectoryFacade
Facade to inteface with the Unit and University Directory.
Constructor Summary | |
---|---|
DirectoryFacade()
Creates a new instance of DirectoryFacade |
|
DirectoryFacade(DirectoryFacade directory)
Creates a new instance of the DirectoryFacade |
Method Summary | |
---|---|
void |
add(Person person)
Add a Person to the UniversityDirectory |
java.lang.Object |
clone()
Clone a new Directoryfacade object |
java.lang.String |
displayCategory()
Display all the people of a certain category. |
java.lang.String |
displayUnit()
|
java.lang.String |
listAll()
List all people in the directory. |
void |
remove(Person person)
Remove a Person from the UniversityDirectory. |
Person |
search()
Search for a Person, reads in input from the console then finds the Person in the directory. |
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()
Get the size of all the units and categories of people in the directory. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryFacade()
public DirectoryFacade(DirectoryFacade directory)
directory
- a DirectoryFacade to make a copy of.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 UniversityDirectorypublic 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 Person search()
public java.lang.String size()
public java.lang.String displayUnit()
public java.lang.String displayCategory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |