java.lang.Object
com.caplin.generated.motif.mm.trading.mmcapitalincrease.events.server.DetailsUpdateTradeEvent
All Implemented Interfaces:
Message

public class DetailsUpdateTradeEvent extends Object implements Message

A single event acting on a MMCapitalIncreaseTrade.

The event may be client generated and received through the respective RFSTradeListener interface or it may be generated by custom code to be sent to the client.

A MMCapitalIncreaseTradeEvent is created using the MMCapitalIncreaseTrade it relates to.

A MMCapitalIncreaseTradeEvent represents a message sent by the server.

  • Constructor Details

  • Method Details

    • getFields

      public Map<String,String> getFields()
      Specified by:
      getFields in interface Message
    • addField

      public void addField(String fieldName, Object value)
      Adds a field to this Event.
      Parameters:
      fieldName - The name of the field to add.
      value - The value of the field to add. If the value is a BigDecimal then it will be converted to a String using BigDecimal.toPlainString()
    • addFields

      public void addFields(Map<String,?> fields)
      Adds a map of fields and their values to this event
      Parameters:
      fields - A map of field names to values to be added to the event. If the value is a BigDecimal then it will be converted to a String using BigDecimal.toPlainString()
    • setInitialTimestamp

      public void setInitialTimestamp(Date date)
      Sets LTY_INIT_TS field to this TradeEvent.
      Parameters:
      date - The time the LTY_INIT_TS field will be set to.
    • setPrincipalAmount

      public void setPrincipalAmount(Object value)
    • setStartDate

      public void setStartDate(Object value)
      In ISO-8601 format, i.e. YYYY-MM-DD
    • setNumberOfDays

      public void setNumberOfDays(Object value)
    • setInterestRate

      public void setInterestRate(Object value)
      Interest rate on the given PrincipalAmount.
    • setCurrency

      public void setCurrency(Object value)
    • getBackingEvent

      public com.caplin.trading.TradeEvent getBackingEvent()
      Returns:
      Get the TradeEvent backing this event
    • toString

      public String toString()
      Overrides:
      toString in class Object