Enum InvestTxnType
java.lang.Object
java.lang.Enum<InvestTxnType>
com.infinitekind.moneydance.model.InvestTxnType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InvestTxnType>
,java.lang.constant.Constable
public enum InvestTxnType extends java.lang.Enum<InvestTxnType>
Defines the various types of investment transactions.
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field 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. -
Method Summary
Modifier and Type Method Description java.lang.String
getIDString()
Return the string that identifies a specific type of transactionjava.lang.String
getLongResourceKey()
java.lang.String
getResourceKey()
boolean
isBuy()
Return whether or not this is a buy transaction type (ie buy or buy+transfer)boolean
isDividend()
Return whether or not this is a dividend transaction type (ie dividend, dividend+reinvest, or dividend+transfer)boolean
isSell()
Return whether or not this is a sell transaction type (ie sell or sell+transfer)static InvestTxnType
txnTypeForStringID(java.lang.String typeID)
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.
-
Enum Constant Details
-
Field Details
-
DEFAULT
The default security type to use if none is specified. -
ALL_TXN_TYPES
the complete list of all investment transaction types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isBuy
public final boolean isBuy()Return whether or not this is a buy transaction type (ie buy or buy+transfer)- Since:
- Moneydance 2017.7 build 1662
-
isSell
public final boolean isSell()Return whether or not this is a sell transaction type (ie sell or sell+transfer)- Since:
- Moneydance 2017.7 build 1662
-
isDividend
public final boolean isDividend()Return whether or not this is a dividend transaction type (ie dividend, dividend+reinvest, or dividend+transfer)- Since:
- Moneydance 2017.7 build 1662
-
getLongResourceKey
public java.lang.String getLongResourceKey()- Returns:
- The resource key for obtaining a long form localized descriptive string / tooltip.
-
getResourceKey
public java.lang.String getResourceKey()- Returns:
- The resource key for obtaining a localized descriptive string / tooltip.
-
getIDString
public java.lang.String getIDString()Return the string that identifies a specific type of transaction- Since:
- Moneydance 2017.7 build 1662
-
txnTypeForStringID
-