Class Administrator

java.lang.Object
  extended by CommunityMember
      extended by Employee
          extended by Faculty
              extended by Administrator

public class Administrator
extends Faculty

Administrator class definition maintains and returns title information.

Version:
Copyright (c) 2003
Author:
Carl B. Struck

Constructor Summary
Administrator(java.lang.String firstName, java.lang.String lastName, int employeeID, java.lang.String department, java.lang.String title)
          The constructor sets initial value for the title field.
 
Method Summary
 java.lang.String getTitle()
          Returns current value of the title field.
 java.lang.String printLine()
          Returns detail line information for title field for a columnar report.
 void setTitle(java.lang.String title)
          Sets the value for the title field converted to all uppercase letters.
 java.lang.String toString()
          Returns formatted title field including text labels.
 
Methods inherited from class Faculty
getDepartment, setDepartment
 
Methods inherited from class Employee
getEmployeeID, setEmployeeID
 
Methods inherited from class CommunityMember
getFirstName, getLastName, printHeading, setCommunityMember, setFirstName, setLastName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Administrator

public Administrator(java.lang.String firstName,
                     java.lang.String lastName,
                     int employeeID,
                     java.lang.String department,
                     java.lang.String title)
The constructor sets initial value for the title field. Explicit call to superclass Faculty sets initial values for fields firstName, lastName, employeeID and department.

Parameters:
firstName - Administrator's first name from indirect superclass CommunityMember.
lastName - Administrator's last name from indirect superclass CommunityMember.
annualSalary - Administrator's ID number from indirect superclass Employee.
department - Department in which administrator works from superclass Faculty.
title - Administrator's title.
Method Detail

getTitle

public java.lang.String getTitle()
Returns current value of the title field.

Returns:
Title of administrator as type String.

printLine

public java.lang.String printLine()
Returns detail line information for title field for a columnar report. Preceded by firstName, lastName, employeeID and department fields from call to printLine() method of superclass Faculty.

Overrides:
printLine in class Faculty
Returns:
Title of administrator as part of a detail line as type String.

setTitle

public void setTitle(java.lang.String title)
Sets the value for the title field converted to all uppercase letters. An empty String value indicates that the title field is empty.

Parameters:
title - Administrator's title.

toString

public java.lang.String toString()
Returns formatted title field including text labels. Preceded by firstName, lastName, employeeID and department fields from call to toString() method of superclass Faculty.

Overrides:
toString in class Faculty
Returns:
Formatted department field as type String.