Class DefaultTableFields


  • public class DefaultTableFields
    extends java.lang.Object
    Static builder methods to build standard Tables
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Table add3WayCollarDealBreakdownRow​(Table table, java.lang.String tradeId1, java.lang.String tradeId2, java.lang.String tradeId3, FormattedAmount notionalQuantity, FormattedAmount strike1, FormattedAmount strike2, FormattedAmount strike3, FormattedAmount premium1, FormattedAmount premium2, FormattedAmount premium3, java.time.LocalDate effectiveDate, java.time.LocalDate terminationDate, java.time.LocalDate expirationDate, java.time.LocalDate paymentDate, java.lang.String uniqueIdentifier)
      Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN 3_WAY_COLLAR
      static Table addCallCapFloorSpreadDealBreakdownRow​(Table table, java.lang.String tradeId, java.lang.String direction, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, java.time.LocalDate effectiveDate, java.time.LocalDate terminationDate, java.time.LocalDate expirationDate, java.time.LocalDate paymentDate, java.lang.String uniqueIdentifier)
      Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO_CALL_SPREAD or as ASIAN CAP/FLOOR SPREAD
      static Table addCollarDealBreakdownRow​(Table table, java.lang.String callOrCapTradeId, java.lang.String putOrFloorTradeId, FormattedAmount notionalQuantity, FormattedAmount callOrCapStrike, FormattedAmount putOrFloorStrike, FormattedAmount callOrCapPremium, FormattedAmount putOrFloorPremium, java.time.LocalDate effectiveDate, java.time.LocalDate terminationDate, java.time.LocalDate expirationDate, java.time.LocalDate paymentDate, java.lang.String uniqueIdentifier)
      Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN COLLAR
      static Table addPutCallCapFloorDealBreakdownRow​(Table table, java.lang.String tradeId, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, java.time.LocalDate effectiveDate, java.time.LocalDate terminationDate, java.time.LocalDate expirationDate, java.time.LocalDate paymentDate, java.lang.String uniqueIdentifier)
      Adds a deal breakdown row to your table configuration for a commodities trade that is EURO PUT/CALL or ASIAN CAP/FLOOR
      static Table addPutSpreadDealBreakdownRow​(Table table, java.lang.String tradeId, FormattedAmount notionalQuantity, FormattedAmount strike, FormattedAmount premium, java.time.LocalDate effectiveDate, java.time.LocalDate terminationDate, java.time.LocalDate expirationDate, java.time.LocalDate paymentDate, java.lang.String uniqueIdentifier)
      Adds a deal breakdown row to your table configuration for a commodities trade that is a PUT_SPREAD
      static Table addSwapDealBreakdownRow​(Table table, java.lang.String tradeId, FormattedAmount notionalQuantity, FormattedAmount fixedPricePerUnit, java.time.LocalDate effectiveDate, java.time.LocalDate terminationDate, java.time.LocalDate paymentDate, java.lang.String uniqueIdentifier)
      Adds a deal breakdown row to your table configuration for a commodities trade that is a FIXED_SWAP or BASIS_SWAP
      static TableCell createAmountCell​(FormattedAmount amount)
      Creates an amount cell
      static TableCell createDateCell​(java.time.LocalDate date)
      Creates a date cell
      static Table createDealBreakdownTable​(java.lang.String tradingType, java.lang.String currency, java.lang.String unit)
      Creates a deal breakdown table for a commodities trade of the given trading type
      static TableCell createTextCell​(java.lang.String text)
      Create a text cell
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addSwapDealBreakdownRow

        public static Table addSwapDealBreakdownRow​(Table table,
                                                    java.lang.String tradeId,
                                                    FormattedAmount notionalQuantity,
                                                    FormattedAmount fixedPricePerUnit,
                                                    java.time.LocalDate effectiveDate,
                                                    java.time.LocalDate terminationDate,
                                                    java.time.LocalDate paymentDate,
                                                    java.lang.String uniqueIdentifier)
        Adds a deal breakdown row to your table configuration for a commodities trade that is a FIXED_SWAP or BASIS_SWAP
        Parameters:
        table - The Table to add the row to
        tradeId - The id of the trade
        notionalQuantity - The quantity of the trade
        fixedPricePerUnit - The fixed price of the trade
        effectiveDate - The effective date of the trade
        terminationDate - The termination date of the trade
        paymentDate - The payment date of the trade
        uniqueIdentifier - Either the unique swap identifier, or the unique transaction identifier, of the trade
      • addPutCallCapFloorDealBreakdownRow

        public static Table addPutCallCapFloorDealBreakdownRow​(Table table,
                                                               java.lang.String tradeId,
                                                               FormattedAmount notionalQuantity,
                                                               FormattedAmount strike,
                                                               FormattedAmount premium,
                                                               java.time.LocalDate effectiveDate,
                                                               java.time.LocalDate terminationDate,
                                                               java.time.LocalDate expirationDate,
                                                               java.time.LocalDate paymentDate,
                                                               java.lang.String uniqueIdentifier)
        Adds a deal breakdown row to your table configuration for a commodities trade that is EURO PUT/CALL or ASIAN CAP/FLOOR
        Parameters:
        table - The Table to add the row to
        tradeId - The id of the trade
        notionalQuantity - The quantity of the trade
        strike - The strike of the trade
        premium - The premium of the trade
        effectiveDate - The effective date of the trade
        terminationDate - The termination date of the trade
        paymentDate - The payment date of the trade
        uniqueIdentifier - Either the unique swap identifier, or the unique transaction identifier, of the trade
      • addCollarDealBreakdownRow

        public static Table addCollarDealBreakdownRow​(Table table,
                                                      java.lang.String callOrCapTradeId,
                                                      java.lang.String putOrFloorTradeId,
                                                      FormattedAmount notionalQuantity,
                                                      FormattedAmount callOrCapStrike,
                                                      FormattedAmount putOrFloorStrike,
                                                      FormattedAmount callOrCapPremium,
                                                      FormattedAmount putOrFloorPremium,
                                                      java.time.LocalDate effectiveDate,
                                                      java.time.LocalDate terminationDate,
                                                      java.time.LocalDate expirationDate,
                                                      java.time.LocalDate paymentDate,
                                                      java.lang.String uniqueIdentifier)
        Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN COLLAR
        Parameters:
        table - The Table to add the row to
        callOrCapTradeId - The id of the call or cap option
        putOrFloorTradeId - The id of the put or floor option
        notionalQuantity - The quantity of the trade
        callOrCapStrike - The strike of the call or cap option
        putOrFloorStrike - The strike of the put or floor option
        callOrCapPremium - The premium of the call or cap option
        putOrFloorPremium - The premium of the put or floor option
        effectiveDate - The effective date of the trade
        terminationDate - The termination date of the trade
        paymentDate - The payment date of the trade
        uniqueIdentifier - Either the unique swap identifier, or the unique transaction identifier, of the trade
      • add3WayCollarDealBreakdownRow

        public static Table add3WayCollarDealBreakdownRow​(Table table,
                                                          java.lang.String tradeId1,
                                                          java.lang.String tradeId2,
                                                          java.lang.String tradeId3,
                                                          FormattedAmount notionalQuantity,
                                                          FormattedAmount strike1,
                                                          FormattedAmount strike2,
                                                          FormattedAmount strike3,
                                                          FormattedAmount premium1,
                                                          FormattedAmount premium2,
                                                          FormattedAmount premium3,
                                                          java.time.LocalDate effectiveDate,
                                                          java.time.LocalDate terminationDate,
                                                          java.time.LocalDate expirationDate,
                                                          java.time.LocalDate paymentDate,
                                                          java.lang.String uniqueIdentifier)
        Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO/ASIAN 3_WAY_COLLAR
        Parameters:
        table - The Table to add the row to
        tradeId1 - The id of the first option
        tradeId2 - The id of the second option
        tradeId3 - The id of the third option
        notionalQuantity - The quantity of the trade
        strike1 - The strike of the first trade
        strike2 - The strike of the second trade
        strike3 - The strike of the third trade
        premium1 - The premium of the first trade
        premium2 - The premium of the second trade
        premium3 - The premium of the third trade
        effectiveDate - The effective date of the trade
        terminationDate - The termination date of the trade
        paymentDate - The payment date of the trade
        uniqueIdentifier - Either the unique swap identifier, or the unique transaction identifier, of the trade
      • addCallCapFloorSpreadDealBreakdownRow

        public static Table addCallCapFloorSpreadDealBreakdownRow​(Table table,
                                                                  java.lang.String tradeId,
                                                                  java.lang.String direction,
                                                                  FormattedAmount notionalQuantity,
                                                                  FormattedAmount strike,
                                                                  FormattedAmount premium,
                                                                  java.time.LocalDate effectiveDate,
                                                                  java.time.LocalDate terminationDate,
                                                                  java.time.LocalDate expirationDate,
                                                                  java.time.LocalDate paymentDate,
                                                                  java.lang.String uniqueIdentifier)
        Adds a deal breakdown row to your table configuration for a commodities trade that is a EURO_CALL_SPREAD or as ASIAN CAP/FLOOR SPREAD
        Parameters:
        table - The Table to add the row to
        tradeId - The id of the trade
        direction - The direction of the trade
        notionalQuantity - The quantity of the trade
        strike - The strike of the trade
        premium - The premium of the trade
        effectiveDate - The effective date of the trade
        terminationDate - The termination date of the trade
        paymentDate - The payment date of the trade
        uniqueIdentifier - Either the unique swap identifier, or the unique transaction identifier, of the trade
      • addPutSpreadDealBreakdownRow

        public static Table addPutSpreadDealBreakdownRow​(Table table,
                                                         java.lang.String tradeId,
                                                         FormattedAmount notionalQuantity,
                                                         FormattedAmount strike,
                                                         FormattedAmount premium,
                                                         java.time.LocalDate effectiveDate,
                                                         java.time.LocalDate terminationDate,
                                                         java.time.LocalDate expirationDate,
                                                         java.time.LocalDate paymentDate,
                                                         java.lang.String uniqueIdentifier)
        Adds a deal breakdown row to your table configuration for a commodities trade that is a PUT_SPREAD
        Parameters:
        table - The Table to add the row to
        tradeId - The id of the trade
        notionalQuantity - The quantity of the trade
        strike - The strike of the trade
        premium - The premium of the trade
        effectiveDate - The effective date of the trade
        terminationDate - The termination date of the trade
        paymentDate - The payment date of the trade
        uniqueIdentifier - Either the unique swap identifier, or the unique transaction identifier, of the trade
      • createTextCell

        public static TableCell createTextCell​(java.lang.String text)
        Create a text cell
        Parameters:
        text - The text to show
        Returns:
      • createDateCell

        public static TableCell createDateCell​(java.time.LocalDate date)
        Creates a date cell
        Parameters:
        date - The date to show
      • createAmountCell

        public static TableCell createAmountCell​(FormattedAmount amount)
        Creates an amount cell
        Parameters:
        amount - The amount of the new trade
      • createDealBreakdownTable

        public static Table createDealBreakdownTable​(java.lang.String tradingType,
                                                     java.lang.String currency,
                                                     java.lang.String unit)
        Creates a deal breakdown table for a commodities trade of the given trading type
        Parameters:
        currency - The currency of the trade (e.g. USD)
        unit - The unit of the trade (e.g. bbl)