Class CityCLIManager
java.lang.Object
collectionManagers.modeManagers.userMode.CityCLIManager
- All Implemented Interfaces:
ModeManager<City>
This class implements the ModeManager interface for City objects.
It contains methods for building a new City object using user input through the command line interface.
It handles input validation for all required fields, and uses other CLIManagers to obtain nested objects.
- Since:
- 2.0
- Author:
- boris
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds a new City object using user input through the command line interface.
-
Constructor Details
-
CityCLIManager
public CityCLIManager()
-
-
Method Details
-
buildObject
Builds a new City object using user input through the command line interface. It handles input validation for all required fields, and uses other CLIManagers to obtain nested objects.- Specified by:
buildObject
in interfaceModeManager<City>
- Returns:
- a new City object built from user input
- Throws:
BuildObjectException
- if an error occurs during object construction- Since:
- 2.0
- See Also:
-