university
Class StaffFactory

java.lang.Object
  extended by university.PersonFactory
      extended by university.EmployeeFactory
          extended by university.StaffFactory
All Implemented Interfaces:
Build

public class StaffFactory
extends EmployeeFactory
implements Build

Factroy builds a Staff member from the information entered in from the console.


Field Summary
protected  StaffStatus status
           
protected  java.lang.String title
           
 
Fields inherited from class university.EmployeeFactory
salary
 
Fields inherited from class university.PersonFactory
address, console, gender, name, unit
 
Constructor Summary
StaffFactory()
          Creates a new instance of BuildStaff
 
Method Summary
 Person build()
          Build a new staff member from the information entered in the console.
 
Methods inherited from class university.EmployeeFactory
buildEmployeeInfo
 
Methods inherited from class university.PersonFactory
buildPersonInfo, createPerson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

status

protected StaffStatus status

title

protected java.lang.String title
Constructor Detail

StaffFactory

public StaffFactory()
Creates a new instance of BuildStaff

Method Detail

build

public Person build()
Build a new staff member from the information entered in the console.

Specified by:
build in interface Build
Returns:
Person the new staff.