Class Trade.TradeImpl

All Implemented Interfaces:
Trade, TradableProduct, com.rosetta.model.lib.GlobalKey, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
Trade

public static class Trade.TradeImpl extends TradableProduct.TradableProductImpl implements Trade
Immutable Implementation of Trade
  • Constructor Details

  • Method Details

    • getTradeIdentifier

      @RosettaAttribute("tradeIdentifier") @Accessor(GETTER) @Required @Multi @RuneAttribute("tradeIdentifier") public List<? extends TradeIdentifier> getTradeIdentifier()
      Description copied from interface: Trade
      Represents the identifier(s) that uniquely identify a trade for an identity issuer. A trade can include multiple identifiers, for example a trade that is reportable to both the CFTC and ESMA, and then has an associated USI (Unique Swap Identifier) UTI (Unique Trade Identifier).
      Specified by:
      getTradeIdentifier in interface Trade
    • getTradeDate

      @RosettaAttribute("tradeDate") @Accessor(GETTER) @Required @RuneAttribute("tradeDate") public FieldWithMetaDate getTradeDate()
      Description copied from interface: Trade
      Specifies the date which the trade was agreed.
      Specified by:
      getTradeDate in interface Trade
    • getTradeTime

      @RosettaAttribute("tradeTime") @Accessor(GETTER) @RuneAttribute("tradeTime") public FieldWithMetaTimeZone getTradeTime()
      Description copied from interface: Trade
      Denotes the trade time and timezone as agreed by the parties to the trade.
      Specified by:
      getTradeTime in interface Trade
    • getParty

      @RosettaAttribute("party") @Accessor(GETTER) @Multi @RuneAttribute("party") public List<? extends Party> getParty()
      Description copied from interface: Trade
      Represents the parties to the trade. The cardinality is optional to address the case where the trade is defined within a BusinessEvent data type, in which case the party is specified in BusinessEvent.
      Specified by:
      getParty in interface Trade
    • getPartyRole

      @RosettaAttribute("partyRole") @Accessor(GETTER) @Multi @RuneAttribute("partyRole") public List<? extends PartyRole> getPartyRole()
      Description copied from interface: Trade
      Represents the role each specified party takes in the trade. further to the principal roles, payer and receiver.
      Specified by:
      getPartyRole in interface Trade
    • getExecutionDetails

      @RosettaAttribute("executionDetails") @Accessor(GETTER) @RuneAttribute("executionDetails") public ExecutionDetails getExecutionDetails()
      Description copied from interface: Trade
      Represents information specific to trades that arose from executions.
      Specified by:
      getExecutionDetails in interface Trade
    • getContractDetails

      @RosettaAttribute("contractDetails") @Accessor(GETTER) @RuneAttribute("contractDetails") public ContractDetails getContractDetails()
      Description copied from interface: Trade
      Represents information specific to trades involving contractual products.
      Specified by:
      getContractDetails in interface Trade
    • getClearedDate

      @RosettaAttribute("clearedDate") @Accessor(GETTER) @RuneAttribute("clearedDate") public com.rosetta.model.lib.records.Date getClearedDate()
      Description copied from interface: Trade
      Specifies the date on which a trade is cleared (novated) through a central counterparty clearing service.
      Specified by:
      getClearedDate in interface Trade
    • getCollateral

      @RosettaAttribute("collateral") @Accessor(GETTER) @RuneAttribute("collateral") public Collateral getCollateral()
      Description copied from interface: Trade
      Represents the collateral obligations of a party.
      Specified by:
      getCollateral in interface Trade
    • getAccount

      @RosettaAttribute("account") @Accessor(GETTER) @Multi @RuneAttribute("account") public List<? extends Account> getAccount()
      Description copied from interface: Trade
      Represents a party's granular account information, which may be used in subsequent internal processing.
      Specified by:
      getAccount in interface Trade
    • getMeta

      @RosettaAttribute("meta") @Accessor(GETTER) @RuneAttribute("meta") @RuneMetaType public com.rosetta.model.metafields.MetaFields getMeta()
      Specified by:
      getMeta in interface com.rosetta.model.lib.GlobalKey
      Specified by:
      getMeta in interface Trade
    • build

      public Trade build()
      Description copied from interface: TradableProduct
      Build Methods
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
      Specified by:
      build in interface TradableProduct
      Specified by:
      build in interface Trade
      Overrides:
      build in class TradableProduct.TradableProductImpl
    • toBuilder

      public Trade.TradeBuilder toBuilder()
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
      Specified by:
      toBuilder in interface TradableProduct
      Specified by:
      toBuilder in interface Trade
      Overrides:
      toBuilder in class TradableProduct.TradableProductImpl
    • setBuilderFields

      protected void setBuilderFields(Trade.TradeBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class TradableProduct.TradableProductImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TradableProduct.TradableProductImpl
    • toString

      public String toString()
      Overrides:
      toString in class TradableProduct.TradableProductImpl