Package bcu.cmp5332.bookingsystem.main
Class CommandParser
java.lang.Object
bcu.cmp5332.bookingsystem.main.CommandParser
The CommandParser class is responsible for parsing user input and creating corresponding Command objects.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CommandParser
public CommandParser()
-
-
Method Details
-
parse
Parses the user input and creates a Command object accordingly.- Parameters:
line
- The user input string- Returns:
- The Command object corresponding to the user input
- Throws:
IOException
- If an I/O error occursFlightBookingSystemException
- If the input command is invalid or cannot be processed
-