|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SecurityType>
com.moneydance.apps.md.model.SecurityType
public enum SecurityType
Defines the various types of security instruments that can be assigned to a security. Securities
may have sub-types as well. The ordinal values are fixed to the original integers mapped to
security type, as previously defined in SecurityAccount:
SECURITY_TYPE_CD = 0;
SECURITY_TYPE_BOND = 1;
SECURITY_TYPE_MUTUAL = 2;
SECURITY_TYPE_STOCK = 3;
SECURITY_TYPE_OPTION = 4;
| Enum Constant Summary | |
|---|---|
BOND
Bond. |
|
CD
Certificate of Deposit. |
|
MUTUAL
Mutual Fund. |
|
OPTION
Option or derivitive. |
|
OTHER
Other type like real estate or commodity. |
|
STOCK
Stocks and Exchange Traded Funds. |
|
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_KEY
Key used to store and retrieve the security type from the account parameters. |
static SecurityType |
DEFAULT
The default security type to use if none is specified. |
| Method Summary | |
|---|---|
static SecurityType |
fromInt(int value)
Given an integer value, return the balance type. |
java.lang.String |
getResourceKey()
Return a resource key for a localized string describing this object. |
java.lang.String |
toDisplayString(com.moneydance.apps.md.view.resources.MDResourceProvider resources)
|
static SecurityType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SecurityType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SecurityType CD
public static final SecurityType BOND
public static final SecurityType MUTUAL
public static final SecurityType STOCK
public static final SecurityType OPTION
public static final SecurityType OTHER
| Field Detail |
|---|
public static final java.lang.String CONFIG_KEY
public static final SecurityType DEFAULT
| Method Detail |
|---|
public static SecurityType[] values()
for (SecurityType c : SecurityType.values()) System.out.println(c);
public static SecurityType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getResourceKey()
DisplayableObject
getResourceKey in interface DisplayableObjectpublic static SecurityType fromInt(int value)
DEFAULT is
returned.
value - The integer value to convert.
public java.lang.String toDisplayString(com.moneydance.apps.md.view.resources.MDResourceProvider resources)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||