Enum InvestTxnType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<InvestTxnType>

    public enum InvestTxnType
    extends java.lang.Enum<InvestTxnType>
    Defines the various types of investment transactions.
    • 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

      All Methods Static Methods Instance Methods Concrete Methods 
      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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT

        public static final InvestTxnType DEFAULT
        The default security type to use if none is specified.
      • ALL_TXN_TYPES

        public static final InvestTxnType[] ALL_TXN_TYPES
        the complete list of all investment transaction types.
    • Method Detail

      • values

        public static InvestTxnType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InvestTxnType c : InvestTxnType.values())
            System.out.println(c);
        
        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)