Class HolidayBoundary
java.lang.Object
Boundary
HolidayBoundary
- All Implemented Interfaces:
Base,BaseBoundary
The Boundary Class of Holiday
A
HolidayBoundary object contains all the attributes
and methods required for the interfacing of Holidays-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to ask user to input holiday dateintMethod to display holiday menu and ask for user input for choicevoidMethod to navigate through holiday menu in STAFF appvoidMethod to print all holidaysvoidMethod to print error message at invalid input of choicevoidMethod to set boundariesvoidMethod to set holiday managerMethods inherited from class Boundary
getCentralManager, getInputDouble, getInputInt, getInputLine, getMasterList, getScanner, print, println, setCentralManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Base
getCentralManager, setCentralManager
-
Constructor Details
-
HolidayBoundary
public HolidayBoundary()Default Constructor
-
-
Method Details
-
setManagers
public void setManagers()Method to set holiday manager- Specified by:
setManagersin interfaceBase
-
setBoundaries
public void setBoundaries()Method to set boundaries- Specified by:
setBoundariesin interfaceBaseBoundary
-
getHolidayDate
Method to ask user to input holiday date- Returns:
- message to ask user to input date
-
printAllHolidays
public void printAllHolidays()Method to print all holidays -
getHolidayMenuChoice
public int getHolidayMenuChoice()Method to display holiday menu and ask for user input for choice- Returns:
- choice
-
printHolidayMenuChoiceError
public void printHolidayMenuChoiceError()Method to print error message at invalid input of choice -
holidayOperations
public void holidayOperations()Method to navigate through holiday menu in STAFF app
-