|
|||||||||
| 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 int |
COMPOUNDING_ANNUALLY
|
static int |
COMPOUNDING_DAILY
|
static int |
COMPOUNDING_MONTHLY
|
static int |
COMPOUNDING_QUARTERLY
|
static int |
COMPOUNDING_WEEKLY
|
static int |
SECURITY_TYPE_BOND
|
static int |
SECURITY_TYPE_CD
|
static int |
SECURITY_TYPE_MUTUAL
|
static int |
SECURITY_TYPE_OPTION
|
static int |
SECURITY_TYPE_STOCK
|
| Constructor Summary | |
|---|---|
SecurityAccount(java.lang.String accountName,
int accountID,
CurrencyType stockID,
java.util.Hashtable accountInfo,
java.util.Vector subAccounts,
Account parentAccount)
|
|
| Method Summary | |
|---|---|
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()
|
int |
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 |
int |
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(int 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 |
setSecurityType(int 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 int SECURITY_TYPE_CD
public static final int SECURITY_TYPE_BOND
public static final int SECURITY_TYPE_MUTUAL
public static final int SECURITY_TYPE_STOCK
public static final int SECURITY_TYPE_OPTION
public static final int COMPOUNDING_DAILY
public static final int COMPOUNDING_WEEKLY
public static final int COMPOUNDING_MONTHLY
public static final int COMPOUNDING_ANNUALLY
public static final int COMPOUNDING_QUARTERLY
| 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 getBroker()
public void setBroker(java.lang.String str)
public java.lang.String getBrokerPhone()
public void setBrokerPhone(java.lang.String brokerPhone)
public int getSecurityType()
public void setSecurityType(int newSecType)
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 int getCompounding()
public void setCompounding(int 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 | ||||||||