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
-
Account(String, Currency, AccountGroup)
- creates a new account.
-
addExtension(AccountExtension)
- Adds an extension on the account.
-
enumerateExtensions()
- Returns an Enumeration of all extensions for this account
-
getDesc()
- accessor for desc
-
getExtension(Class)
- Looks up a specific extension for this account.
-
getGroup()
-
-
getHomeCurrency()
- accessor for homeCurrency
-
getTransactions()
-
-
removeExtensions()
-
-
setDesc(String)
- accessor for desc
-
setGroup(AccountGroup)
-
-
setHomeCurrency(Currency)
- accessor for homeCurrency
-
toString()
-
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
getDesc
public String getDesc()
- accessor for desc
setDesc
public void setDesc(String d)
- accessor for desc
getHomeCurrency
public Currency getHomeCurrency()
- accessor for homeCurrency
setHomeCurrency
public void setHomeCurrency(Currency c)
- accessor for homeCurrency
setGroup
public void setGroup(AccountGroup g)
getGroup
public AccountGroup getGroup()
toString
public String toString()
- Overrides:
- toString in class Object
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
removeExtensions
public void removeExtensions()
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.
enumerateExtensions
public Enumeration enumerateExtensions()
- Returns an Enumeration of all extensions for this account
getTransactions
public TransactionList getTransactions()
All Packages Class Hierarchy This Package Previous Next Index