university
Class Staff

java.lang.Object
  extended by university.Person
      extended by university.Employee
          extended by university.Staff
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Staff
extends Employee
implements java.lang.Cloneable

Class for the staff of the university

See Also:
Serialized Form

Constructor Summary
Staff(java.lang.String name, Sex gender, Address address, Unit unit, int salary, StaffStatus status, java.lang.String jobTitle)
          Creates a new instance of Staff.
 
Method Summary
 java.lang.Object clone()
          Clone a new object
 java.lang.String getJobTitle()
          Returns the staffs job title.
 void setJobTitle(java.lang.String jobTitle)
          Sets the staffs job title.
 java.lang.String toString()
          Returns a String representation of the staff member.
 
Methods inherited from class university.Employee
getSalary, setSalary
 
Methods inherited from class university.Person
getAddress, getAffiliation, getGender, getID, getName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Staff

public Staff(java.lang.String name,
             Sex gender,
             Address address,
             Unit unit,
             int salary,
             StaffStatus status,
             java.lang.String jobTitle)
Creates a new instance of Staff.

Parameters:
name - The name of the staff member.
gender - The geneder of the staff member.
address - The address of the staff member.
salary - The staffs salary.
status - Theather the staff member if part time of full time.
jobTitle - The staff members job title.
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone a new object

Overrides:
clone in class Employee
Returns:
Object a cloned object
Throws:
java.lang.CloneNotSupportedException - Throws CloneNotSupportedException

getJobTitle

public final java.lang.String getJobTitle()
Returns the staffs job title.

Returns:
String representing the staffs job title.

setJobTitle

public final void setJobTitle(java.lang.String jobTitle)
Sets the staffs job title.

Parameters:
jobTitle - the job title of the staff.

toString

public java.lang.String toString()
Returns a String representation of the staff member.

Overrides:
toString in class Employee
Returns:
String representing the staff.