All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.account.db.Account

java.lang.Object
   |
   +----benno.account.db.Account

public final class Account
extends Object
implements Serializable
This represents an account.

Version:
$Revision: 1.14 $
Author:
Ben Clifford

Constructor Index

 o Account(String, Currency, AccountGroup)
creates a new account.

Method Index

 o addExtension(AccountExtension)
Adds an extension on the account.
 o enumerateExtensions()
Returns an Enumeration of all extensions for this account
 o getDesc()
accessor for desc
 o getExtension(Class)
Looks up a specific extension for this account.
 o getGroup()
 o getHomeCurrency()
accessor for homeCurrency
 o getTransactions()
 o removeExtensions()
 o setDesc(String)
accessor for desc
 o setGroup(AccountGroup)
 o setHomeCurrency(Currency)
accessor for homeCurrency
 o toString()

Constructors

 o Account
 public Account(String d,
                Currency hc,
                AccountGroup gr)
creates a new account.
note that this constructor does not add the account to an AccountList.

Parameters:
d - The description of the account
hc - The home currency of the account
gr - The group that the account belongs to

Methods

 o getDesc
 public String getDesc()
accessor for desc

 o setDesc
 public void setDesc(String d)
accessor for desc

 o getHomeCurrency
 public Currency getHomeCurrency()
accessor for homeCurrency

 o setHomeCurrency
 public void setHomeCurrency(Currency c)
accessor for homeCurrency

 o setGroup
 public void setGroup(AccountGroup g)
 o getGroup
 public AccountGroup getGroup()
 o toString
 public String toString()
Overrides:
toString in class Object
 o addExtension
 public void addExtension(AccountExtension e)
Adds an extension on the account. I have yet to decide whether an account may have the same extension multiple times.

Parameters:
e - The extension to be added
 o removeExtensions
 public void removeExtensions()
 o getExtension
 public AccountExtension getExtension(Class c)
Looks up a specific extension for this account.

Parameters:
c - A Class object representing the class (or super-class) of the desired extension.
Returns:
s The AccountExtension object representing the requested extension, or null if one cannot be found.
 o enumerateExtensions
 public Enumeration enumerateExtensions()
Returns an Enumeration of all extensions for this account

 o getTransactions
 public TransactionList getTransactions()

All Packages  Class Hierarchy  This Package  Previous  Next  Index