Class HumanCLIManager
java.lang.Object
collectionManagers.modeManagers.userMode.HumanCLIManager
- All Implemented Interfaces:
ModeManager<Human>
This class implements the ModeManager interface for constructing a new Human object through the CLI.
The buildObject() method prompts the user to enter the name of the human governor and returns a new Human object with the entered name.
The input is validated using an InputValidator object.
- Since:
- 2.0
- Author:
- boris
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs a new Human object through the CLI by prompting the user to enter the name of the governor.
-
Constructor Details
-
HumanCLIManager
public HumanCLIManager()
-
-
Method Details
-
buildObject
Constructs a new Human object through the CLI by prompting the user to enter the name of the governor.- Specified by:
buildObject
in interfaceModeManager<Human>
- Returns:
- a new Human object with the entered name
- Throws:
BuildObjectException
- if an error occurs while constructing the object
-