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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    BANK  
    BUY  
    BUY_XFER  
    COVER  
    DIVIDEND  
    DIVIDEND_REINVEST  
    DIVIDENDXFR  
    MISCEXP  
    MISCINC  
    SELL  
    SELL_XFER  
    SHORT  
  • 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 transaction
    java.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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static InvestTxnType[] 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

      public static InvestTxnType valueOf​(java.lang.String name)
      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 name
      java.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

      public static InvestTxnType txnTypeForStringID​(java.lang.String typeID)