Class HumanCLIManager

java.lang.Object
collectionManagers.modeManagers.userMode.HumanCLIManager
All Implemented Interfaces:
ModeManager<Human>

public class HumanCLIManager extends Object implements 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 Details

    • HumanCLIManager

      public HumanCLIManager()
  • Method Details

    • buildObject

      public Human buildObject() throws BuildObjectException
      Constructs a new Human object through the CLI by prompting the user to enter the name of the governor.
      Specified by:
      buildObject in interface ModeManager<Human>
      Returns:
      a new Human object with the entered name
      Throws:
      BuildObjectException - if an error occurs while constructing the object