Package cdm.event.workflow
Class EventInstruction.EventInstructionBuilderImpl
java.lang.Object
cdm.event.workflow.EventInstruction.EventInstructionBuilderImpl
- All Implemented Interfaces:
EventInstruction,EventInstruction.EventInstructionBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Direct Known Subclasses:
BusinessEvent.BusinessEventBuilderImpl
- Enclosing interface:
EventInstruction
public static class EventInstruction.EventInstructionBuilderImpl
extends Object
implements EventInstruction.EventInstructionBuilder
Builder Implementation of EventInstruction
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.event.workflow.EventInstruction
EventInstruction.EventInstructionBuilder, EventInstruction.EventInstructionBuilderImpl, EventInstruction.EventInstructionImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CorporateActionTypeEnumprotected com.rosetta.model.lib.records.Dateprotected com.rosetta.model.lib.records.Dateprotected List<Instruction.InstructionBuilder> protected EventIntentEnumprotected IdentifiedList.IdentifiedListBuilderFields inherited from interface cdm.event.workflow.EventInstruction
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInstruction(Instruction _instruction) addInstruction(Instruction _instruction, int idx) addInstruction(List<? extends Instruction> instructions) build()Build Methodsbooleancom.rosetta.model.lib.records.DateThe date on which the event contractually takes effect, when different from the event date.com.rosetta.model.lib.records.DateSpecifies the date on which the event is taking place.List<? extends Instruction.InstructionBuilder> Specifies the instructions to create the Business Event.The intent attribute is meant to be specified when the event qualification cannot be programmatically inferred from the event features.getOrCreateInstruction(int index) Specifies the package information in case the business event represents several trades executed as a package (hence this attribute is optional).booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setCorporateActionIntent(CorporateActionTypeEnum _corporateActionIntent) setEffectiveDate(com.rosetta.model.lib.records.Date _effectiveDate) setEventDate(com.rosetta.model.lib.records.Date _eventDate) setInstruction(List<? extends Instruction> instructions) setIntent(EventIntentEnum _intent) setPackageInformation(IdentifiedList _packageInformation) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.event.workflow.EventInstruction
getType, metaData, processMethods inherited from interface cdm.event.workflow.EventInstruction.EventInstructionBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
intent
-
corporateActionIntent
-
eventDate
protected com.rosetta.model.lib.records.Date eventDate -
effectiveDate
protected com.rosetta.model.lib.records.Date effectiveDate -
packageInformation
-
instruction
-
-
Constructor Details
-
EventInstructionBuilderImpl
public EventInstructionBuilderImpl()
-
-
Method Details
-
getIntent
Description copied from interface:EventInstructionThe 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:
getIntentin interfaceEventInstruction
-
getCorporateActionIntent
@RosettaAttribute("corporateActionIntent") @RuneAttribute("corporateActionIntent") public CorporateActionTypeEnum getCorporateActionIntent()- Specified by:
getCorporateActionIntentin interfaceEventInstruction
-
getEventDate
@RosettaAttribute("eventDate") @RuneAttribute("eventDate") public com.rosetta.model.lib.records.Date getEventDate()Description copied from interface:EventInstructionSpecifies 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:
getEventDatein interfaceEventInstruction
-
getEffectiveDate
@RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public com.rosetta.model.lib.records.Date getEffectiveDate()Description copied from interface:EventInstructionThe date on which the event contractually takes effect, when different from the event date.- Specified by:
getEffectiveDatein interfaceEventInstruction
-
getPackageInformation
@RosettaAttribute("packageInformation") @RuneAttribute("packageInformation") public IdentifiedList.IdentifiedListBuilder getPackageInformation()Description copied from interface:EventInstructionSpecifies 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:
getPackageInformationin interfaceEventInstruction- Specified by:
getPackageInformationin interfaceEventInstruction.EventInstructionBuilder
-
getOrCreatePackageInformation
- Specified by:
getOrCreatePackageInformationin interfaceEventInstruction.EventInstructionBuilder
-
getInstruction
@RosettaAttribute("instruction") @RuneAttribute("instruction") public List<? extends Instruction.InstructionBuilder> getInstruction()Description copied from interface:EventInstructionSpecifies the instructions to create the Business Event.- Specified by:
getInstructionin interfaceEventInstruction- Specified by:
getInstructionin interfaceEventInstruction.EventInstructionBuilder
-
getOrCreateInstruction
- Specified by:
getOrCreateInstructionin interfaceEventInstruction.EventInstructionBuilder
-
setIntent
@RosettaAttribute("intent") @RuneAttribute("intent") public EventInstruction.EventInstructionBuilder setIntent(EventIntentEnum _intent) - Specified by:
setIntentin interfaceEventInstruction.EventInstructionBuilder
-
setCorporateActionIntent
@RosettaAttribute("corporateActionIntent") @RuneAttribute("corporateActionIntent") public EventInstruction.EventInstructionBuilder setCorporateActionIntent(CorporateActionTypeEnum _corporateActionIntent) - Specified by:
setCorporateActionIntentin interfaceEventInstruction.EventInstructionBuilder
-
setEventDate
@RosettaAttribute("eventDate") @RuneAttribute("eventDate") public EventInstruction.EventInstructionBuilder setEventDate(com.rosetta.model.lib.records.Date _eventDate) - Specified by:
setEventDatein interfaceEventInstruction.EventInstructionBuilder
-
setEffectiveDate
@RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public EventInstruction.EventInstructionBuilder setEffectiveDate(com.rosetta.model.lib.records.Date _effectiveDate) - Specified by:
setEffectiveDatein interfaceEventInstruction.EventInstructionBuilder
-
setPackageInformation
@RosettaAttribute("packageInformation") @RuneAttribute("packageInformation") public EventInstruction.EventInstructionBuilder setPackageInformation(IdentifiedList _packageInformation) - Specified by:
setPackageInformationin interfaceEventInstruction.EventInstructionBuilder
-
addInstruction
@RosettaAttribute("instruction") @RuneAttribute("instruction") public EventInstruction.EventInstructionBuilder addInstruction(Instruction _instruction) - Specified by:
addInstructionin interfaceEventInstruction.EventInstructionBuilder
-
addInstruction
- Specified by:
addInstructionin interfaceEventInstruction.EventInstructionBuilder
-
addInstruction
public EventInstruction.EventInstructionBuilder addInstruction(List<? extends Instruction> instructions) - Specified by:
addInstructionin interfaceEventInstruction.EventInstructionBuilder
-
setInstruction
@RuneAttribute("instruction") public EventInstruction.EventInstructionBuilder setInstruction(List<? extends Instruction> instructions) - Specified by:
setInstructionin interfaceEventInstruction.EventInstructionBuilder
-
build
Description copied from interface:EventInstructionBuild Methods- Specified by:
buildin interfaceEventInstruction- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceEventInstruction- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfaceEventInstruction.EventInstructionBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public EventInstruction.EventInstructionBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-