org.base.apps.example.bank
Class Account

java.lang.Object
  extended by org.base.apps.example.bank.Account
All Implemented Interfaces:
Nameable, Named

public class Account
extends Object
implements Nameable

Represents a checking account, with a collection of line item Transactions.

Author:
Kevan Simpson

Constructor Summary
Account()
           
 
Method Summary
 void addTransaction(Transaction trax)
           
 String getName()
          Fetches the name of this instance.
 String getNumber()
           
 List<Transaction> getTransactions()
           
 void removeTransaction(Transaction trax)
           
 void setName(String name)
          Sets the name of this instance.
 void setNumber(String number)
           
 void setTransactions(List<Transaction> transactions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Account

public Account()
Method Detail

getName

public String getName()
Description copied from interface: Named
Fetches the name of this instance.

Specified by:
getName in interface Named
Returns:
the name of this instance.
See Also:
Named.getName()

setName

public void setName(String name)
Description copied from interface: Nameable
Sets the name of this instance.

Specified by:
setName in interface Nameable
Parameters:
name - The new name.
See Also:
Nameable.setName(java.lang.String)

getNumber

public String getNumber()
Returns:
the number

setNumber

public void setNumber(String number)
Parameters:
number - the number to set

addTransaction

public void addTransaction(Transaction trax)

getTransactions

public List<Transaction> getTransactions()
Returns:
the transactions

removeTransaction

public void removeTransaction(Transaction trax)

setTransactions

public void setTransactions(List<Transaction> transactions)
Parameters:
transactions - the transactions to set

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)