|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.apps.md.model.Account
com.moneydance.apps.md.model.SecurityAccount
public class SecurityAccount
An account representing a stock or security. SecurityAccounts must be children of the investment account to which they are attached.
Field Summary | |
---|---|
static java.lang.String[] |
EXCHANGE_CODES
|
Constructor Summary | |
---|---|
SecurityAccount(java.lang.String accountName,
int accountID,
CurrencyType stockID,
java.util.Hashtable accountInfo,
java.util.Vector subAccounts,
Account parentAccount)
|
Method Summary | |
---|---|
java.lang.String |
getAccountName()
|
double |
getAPR()
Holds coupon/interest rate for bonds, cd's |
int |
getBondType()
Holds a bond's type as an integer 0 - gov; 1 - municipal; 2 - corp; 3 - zero-coupon |
java.lang.String |
getBroker()
|
java.lang.String |
getBrokerPhone()
|
CompoundingType |
getCompounding()
Returns the compounding period for a CD. |
java.lang.String |
getCurrencyChoice()
Holds the currency in which this security is to be viewed. |
long |
getDividend()
Holds the dividend for a particular stock. |
java.lang.String |
getExchange()
Holds a string representing the exchange the stock is traded on. |
long |
getFaceValue()
Gets the face value of a bond |
long |
getMaturity()
Holds the maturity date for a bond as a String |
int |
getMonth()
Holds the exercise month for the option as an int (0-11) options expire on the 3rd Friday of this month |
int |
getNumYears()
Holds # of years a CD is held for: zero is 6 months, all other integers represent the number of years. |
double |
getOptionPrice()
Holds the price of an option. |
boolean |
getPut()
Holds whether an option is a put or a call true - put; false - call |
java.lang.String |
getSecuritySubType()
|
SecurityType |
getSecurityType()
|
long |
getStrikePrice()
Holds the strike price of an option |
boolean |
getUsesAverageCost()
Holds method of figuring cost basis: true is avg. |
void |
setAPR(double rate)
|
void |
setBondType(int type)
|
void |
setBroker(java.lang.String str)
|
void |
setBrokerPhone(java.lang.String brokerPhone)
|
void |
setCompounding(CompoundingType cmp)
Returns the compounding period for a CD. |
void |
setCurrencyChoice(java.lang.String curr)
|
void |
setDividend(long dividend)
|
void |
setExchange(java.lang.String exchange)
|
void |
setFaceValue(long value)
Sets the face value of a bond |
void |
setMaturity(long date)
|
void |
setMonth(int month)
|
void |
setNumYears(int yrs)
|
void |
setOptionPrice(double price)
|
void |
setPut(boolean put)
|
void |
setSecuritySubType(java.lang.String subType)
|
void |
setSecurityType(SecurityType newSecType)
|
void |
setStrikePrice(long strike)
|
void |
setUsesAverageCost(boolean method)
Sets whether or not this security uses the average cost method of determining cost basis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] EXCHANGE_CODES
Constructor Detail |
---|
public SecurityAccount(java.lang.String accountName, int accountID, CurrencyType stockID, java.util.Hashtable accountInfo, java.util.Vector subAccounts, Account parentAccount)
Method Detail |
---|
public java.lang.String getAccountName()
getAccountName
in class Account
public java.lang.String getBroker()
public void setBroker(java.lang.String str)
public java.lang.String getBrokerPhone()
public void setBrokerPhone(java.lang.String brokerPhone)
public SecurityType getSecurityType()
public void setSecurityType(SecurityType newSecType)
public java.lang.String getSecuritySubType()
public void setSecuritySubType(java.lang.String subType)
public java.lang.String getCurrencyChoice()
public void setCurrencyChoice(java.lang.String curr)
public long getDividend()
public void setDividend(long dividend)
public java.lang.String getExchange()
public void setExchange(java.lang.String exchange)
public boolean getUsesAverageCost()
public void setUsesAverageCost(boolean method)
public double getAPR()
public void setAPR(double rate)
public int getNumYears()
public void setNumYears(int yrs)
public CompoundingType getCompounding()
public void setCompounding(CompoundingType cmp)
public long getFaceValue()
public void setFaceValue(long value)
public long getMaturity()
public void setMaturity(long date)
public int getBondType()
public void setBondType(int type)
public boolean getPut()
public void setPut(boolean put)
public double getOptionPrice()
public void setOptionPrice(double price)
public long getStrikePrice()
public void setStrikePrice(long strike)
public int getMonth()
public void setMonth(int month)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |