Package betterBankingGUImaven
Class Client
Object
Client
public class Client
extends Object
This class defines a BetterBanking Client object, and
implements various methods to manipulate this Client.
- Version:
- 1.0
- Author:
- Tristan Parry
-
Constructor Summary
Constructors Constructor Description Client(Document clientInfo)
This constructor creates a BetterBanking Client with a specified first name, last name, username, and password. -
Method Summary
Modifier and Type Method Description String
getUsername()
This accessor method returns the Client object's username instance field.String
toString()
This method returns a formatted String of the Client object's field values.boolean
updateAccounts(String accountTypeArg)
This method checks if a BetterBanking Client holds a specific Account type.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Client
public Client(Document clientInfo)This constructor creates a BetterBanking Client with a specified first name, last name, username, and password.- Parameters:
clientInfo
- Document used to read the required Client parameters from an associated database file
-
-
Method Details
-
getUsername
public String getUsername()This accessor method returns the Client object's username instance field.- Returns:
- The Client's username field value
-
toString
public String toString()This method returns a formatted String of the Client object's field values.- Overrides:
toString
in classObject
-
updateAccounts
public boolean updateAccounts(String accountTypeArg)This method checks if a BetterBanking Client holds a specific Account type.- Parameters:
accountTypeArg
- String Account type to read from the Client database file- Returns:
- The validity of the passed Account type for the Client object
-