| net.sf.jmoney.model2.CapitalAccount net.sf.jmoney.stocks.StockAccount
Constructor Summary | |
public | StockAccount(IObjectKey objectKey, ListKey parentKey, String name, IListManager<CapitalAccount> subAccounts, String abbreviation, String comment, IObjectKey currencyKey, String brokerageFirm, String accountNumber, String tax1Name, String tax2Name, IObjectKey commissionAccountKey, IObjectKey tax1AccountKey, IObjectKey tax2AccountKey, RatesTable buyCommissionRates, RatesTable sellCommissionRates, RatesTable tax1Rates, RatesTable tax2Rates, IValues extensionValues) The full constructor for a StockAccount object. | public | StockAccount(IObjectKey objectKey, ListKey parent) |
buyCommissionRates | protected RatesTable buyCommissionRates(Code) | | A table that allows the commission to be calculated based
on the amount of any purchase. Null indicates no rate table
is available in which case the user must enter the
amount.
|
commissionAccountKey | IObjectKey commissionAccountKey(Code) | | The expense account into which all buy and sell commissions
are entered.
|
currencyKey | IObjectKey currencyKey(Code) | | Guaranteed non-null because the session default currency is
set by default.
|
dividendAccountKey | IObjectKey dividendAccountKey(Code) | | The income account into which all dividends from stock in this
account are entered.
|
sellCommissionRates | protected RatesTable sellCommissionRates(Code) | | A table that allows the commission to be calculated based
on the amount of any sale. Null indicates no rate table
is available in which case the user must enter the
amount.
|
tax1AccountKey | IObjectKey tax1AccountKey(Code) | | The expense account into which all amounts of
tax 1 are entered.
|
tax1Name | protected String tax1Name(Code) | | The name of this tax. For example, in the UK a transfer
stamp is charged so you might want to call this tax
"Transfer Stamp".
|
tax1Rates | protected RatesTable tax1Rates(Code) | | A table that allows a tax to be calculated from the
amount of any purchase. Null indicates no rate table
is available in which case the user must enter the
amount.
For example, in the UK a transfer stamp is charged
on every purchase/sale.
|
tax2AccountKey | IObjectKey tax2AccountKey(Code) | | The expense account into which all amounts of
tax 1 are entered.
|
tax2Name | protected String tax2Name(Code) | | The name of this tax. For example, in the UK a PTM Levy
is charged so you might want to call this tax
"PTM Levy".
|
tax2Rates | protected RatesTable tax2Rates(Code) | | A table that allows a tax to be calculated from the
amount of any purchase. Null indicates no rate table
is available in which case the user must enter the
amount.
For example, in the UK a PTM levy is charged
on every purchase/sale.
|
withholdingTaxAccountKey | IObjectKey withholdingTaxAccountKey(Code) | | The income account into which any tax withholding on dividends from stock in this
account are entered.
|
StockAccount | public StockAccount(IObjectKey objectKey, ListKey parentKey, String name, IListManager<CapitalAccount> subAccounts, String abbreviation, String comment, IObjectKey currencyKey, String brokerageFirm, String accountNumber, String tax1Name, String tax2Name, IObjectKey commissionAccountKey, IObjectKey tax1AccountKey, IObjectKey tax2AccountKey, RatesTable buyCommissionRates, RatesTable sellCommissionRates, RatesTable tax1Rates, RatesTable tax2Rates, IValues extensionValues)(Code) | | The full constructor for a StockAccount object. This constructor is called
only be the datastore when loading data from the datastore. The properties
passed to this constructor must be valid because datastores should only pass back
values that were previously saved from a StockAccount object. So, for example,
we can be sure that a non-null name and currency are passed to this constructor.
Parameters: name - the name of the account |
getAccountNumber | public String getAccountNumber()(Code) | | the account number of this account. |
getBrokerageFirm | public String getBrokerageFirm()(Code) | | the bank name of this account. |
getCommodity | public Commodity getCommodity(Entry entry)(Code) | | Returns the commodity represented by the amount in this
entry. If this entry represents an addition of stock to
the account or a removal of stock from the account then
the amount represents the amount of that stock. Otherwise
the amount represents an amount in the currency for the account.
|
getDividendAccount | public IncomeExpenseAccount getDividendAccount()(Code) | | the account that contains the dividend income forstock in this account |
getExtendablePropertySetId | protected String getExtendablePropertySetId()(Code) | | |
setAccountNumber | public void setAccountNumber(String accountNumber)(Code) | | |
setBrokerageFirm | public void setBrokerageFirm(String brokerageFirm)(Code) | | Parameters: aBank - the name of this account. |
setBuyCommissionRates | public void setBuyCommissionRates(RatesTable newCommissionRates)(Code) | | |
setSellCommissionRates | public void setSellCommissionRates(RatesTable newCommissionRates)(Code) | | |
|
|