public enum InvestTxnType extends java.lang.Enum<InvestTxnType>
TXN_TYPE_BUY = 0; TXN_TYPE_SELL = 1; TXN_TYPE_BUY_XFER = 2; TXN_TYPE_SELL_XFER = 3; TXN_TYPE_BANK = 4; TXN_TYPE_DIVIDEND = 5; TXN_TYPE_SHORT = 6; TXN_TYPE_COVER = 7; TXN_TYPE_DIVIDENDXFR = 8; TXN_TYPE_MISCINC = 9; TXN_TYPE_MISCEXP = 10; TXN_TYPE_DIVIDEND_REINVEST = 11;
Enum Constant and Description |
---|
BANK
Moves cash from some other account to the cash of the investment account.
|
BUY
Removes cash from investment account and converts to shares of a security.
|
BUY_XFER
Removes cash from some other account and converts to shares of a security.
|
COVER
Removes cash from investment account and converts to shares of a security.
|
DIVIDEND
Adds cash to the investment account.
|
DIVIDEND_REINVEST
Adds shares to the security worth a certain amount of cash, no change in cash amounts.
|
DIVIDENDXFR
Adds cash to some other account.
|
MISCEXP
Removes cash to the investment account.
|
MISCINC
Adds cash to the investment account.
|
SELL
Removes shares of a security and adds cash to the investment account.
|
SELL_XFER
Removes shares of a security and adds cash to some other account.
|
SHORT
Removes shares of a security and adds cash to the investment account.
|
Modifier and Type | Field and Description |
---|---|
static InvestTxnType[] |
ALL_TXN_TYPES
the complete list of all investment transaction types.
|
static InvestTxnType |
DEFAULT
The default security type to use if none is specified.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLongResourceKey() |
java.lang.String |
getResourceKey() |
static InvestTxnType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvestTxnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvestTxnType BUY
public static final InvestTxnType SELL
public static final InvestTxnType BUY_XFER
public static final InvestTxnType SELL_XFER
public static final InvestTxnType BANK
public static final InvestTxnType DIVIDEND
public static final InvestTxnType SHORT
public static final InvestTxnType COVER
public static final InvestTxnType DIVIDENDXFR
public static final InvestTxnType MISCINC
public static final InvestTxnType MISCEXP
public static final InvestTxnType DIVIDEND_REINVEST
public static final InvestTxnType DEFAULT
public static final InvestTxnType[] ALL_TXN_TYPES
public static InvestTxnType[] values()
for (InvestTxnType c : InvestTxnType.values()) System.out.println(c);
public static InvestTxnType 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getLongResourceKey()
public java.lang.String getResourceKey()