Class EventInstruction.EventInstructionImpl

java.lang.Object
cdm.event.workflow.EventInstruction.EventInstructionImpl
All Implemented Interfaces:
EventInstruction, com.rosetta.model.lib.RosettaModelObject
Direct Known Subclasses:
BusinessEvent.BusinessEventImpl
Enclosing interface:
EventInstruction

public static class EventInstruction.EventInstructionImpl extends Object implements EventInstruction
Immutable Implementation of EventInstruction
  • Constructor Details

  • Method Details

    • getIntent

      @RosettaAttribute("intent") @RuneAttribute("intent") public EventIntentEnum getIntent()
      Description copied from interface: EventInstruction
      The intent attribute is meant to be specified when the event qualification cannot be programmatically inferred from the event features. As a result it is only associated with those primitives that can give way to such ambiguity, the quantityChange being one of those. An example of such is a reduction in the trade notional, which could be interpreted as either a trade correction (unless a maximum period of time post-event is specified as part of the qualification), a partial termination or a portfolio rebalancing in the case of an equity swap. On the other hand, an event such as the exercise is not expected to have an associated intent as there should not be ambiguity.
      Specified by:
      getIntent in interface EventInstruction
    • getCorporateActionIntent

      @RosettaAttribute("corporateActionIntent") @RuneAttribute("corporateActionIntent") public CorporateActionTypeEnum getCorporateActionIntent()
      Specified by:
      getCorporateActionIntent in interface EventInstruction
    • getEventDate

      @RosettaAttribute("eventDate") @RuneAttribute("eventDate") public com.rosetta.model.lib.records.Date getEventDate()
      Description copied from interface: EventInstruction
      Specifies the date on which the event is taking place. This date is equal to the trade date in the case of a simple execution. However it can be different from the trade date, for example in the case of a partial termination.
      Specified by:
      getEventDate in interface EventInstruction
    • getEffectiveDate

      @RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public com.rosetta.model.lib.records.Date getEffectiveDate()
      Description copied from interface: EventInstruction
      The date on which the event contractually takes effect, when different from the event date.
      Specified by:
      getEffectiveDate in interface EventInstruction
    • getPackageInformation

      @RosettaAttribute("packageInformation") @RuneAttribute("packageInformation") public IdentifiedList getPackageInformation()
      Description copied from interface: EventInstruction
      Specifies the package information in case the business event represents several trades executed as a package (hence this attribute is optional). The package information is only instantiated once at the business event level to preserve referential integrity, whereas individual trades make reference to it to identify that they are part of a package.
      Specified by:
      getPackageInformation in interface EventInstruction
    • getInstruction

      @RosettaAttribute("instruction") @RuneAttribute("instruction") public List<? extends Instruction> getInstruction()
      Description copied from interface: EventInstruction
      Specifies the instructions to create the Business Event.
      Specified by:
      getInstruction in interface EventInstruction
    • build

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

      Specified by:
      toBuilder in interface EventInstruction
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(EventInstruction.EventInstructionBuilder 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