Class TradeState.TradeStateImpl

java.lang.Object
cdm.event.common.TradeState.TradeStateImpl
All Implemented Interfaces:
TradeState, com.rosetta.model.lib.GlobalKey, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
TradeState

public static class TradeState.TradeStateImpl extends Object implements TradeState
Immutable Implementation of TradeState
  • Constructor Details

  • Method Details

    • getTrade

      @RosettaAttribute(value="trade", isRequired=true) @RuneAttribute(value="trade", isRequired=true) public Trade getTrade()
      Description copied from interface: TradeState
      Represents the Trade that has been effected by a business or life-cycle event.
      Specified by:
      getTrade in interface TradeState
    • getState

      @RosettaAttribute("state") @RuneAttribute("state") public State getState()
      Description copied from interface: TradeState
      Represents the State of the Trade through its life-cycle.
      Specified by:
      getState in interface TradeState
    • getResetHistory

      @RosettaAttribute("resetHistory") @RuneAttribute("resetHistory") public List<? extends Reset> getResetHistory()
      Description copied from interface: TradeState
      Represents the updated Trade attributes which can change as the result of a reset event. Only the changed values are captured, leaving the remaining data attributes empty. See Create_Reset function for further details on how TradeState is used in the Reset event. The TradeState data type is used to maintain backwards compatibility with the current Reset mechanism.
      Specified by:
      getResetHistory in interface TradeState
    • getTransferHistory

      @RosettaAttribute("transferHistory") @RuneAttribute("transferHistory") public List<? extends TransferState> getTransferHistory()
      Description copied from interface: TradeState
      Represents the updated Trade attributes which can change as the result of a transfer event.
      Specified by:
      getTransferHistory in interface TradeState
    • getObservationHistory

      @RosettaAttribute("observationHistory") @RuneAttribute("observationHistory") public List<? extends ObservationEvent> getObservationHistory()
      Description copied from interface: TradeState
      Represents the observed events related to a particular product or process, such as credit events or corporate actions.
      Specified by:
      getObservationHistory in interface TradeState
    • getValuationHistory

      @RosettaAttribute("valuationHistory") @RuneAttribute("valuationHistory") public List<? extends Valuation> getValuationHistory()
      Specified by:
      getValuationHistory in interface TradeState
    • getMeta

      @RosettaAttribute("meta") @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 TradeState
    • build

      public TradeState build()
      Description copied from interface: TradeState
      Build Methods
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
      Specified by:
      build in interface TradeState
    • toBuilder

      public TradeState.TradeStateBuilder toBuilder()
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
      Specified by:
      toBuilder in interface TradeState
    • setBuilderFields

      protected void setBuilderFields(TradeState.TradeStateBuilder builder)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object