Package cdm.event.common
Class CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilderImpl
java.lang.Object
cdm.event.common.CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilderImpl
- All Implemented Interfaces:
CounterpartyPositionBusinessEvent,CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
CounterpartyPositionBusinessEvent
public static class CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilderImpl
extends Object
implements CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
Builder Implementation of CounterpartyPositionBusinessEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.event.common.CounterpartyPositionBusinessEvent
CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder, CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilderImpl, CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CorporateActionTypeEnumprotected com.rosetta.model.lib.records.Dateprotected com.rosetta.model.lib.records.Dateprotected PositionEventIntentEnumprotected IdentifiedList.IdentifiedListBuilderFields inherited from interface cdm.event.common.CounterpartyPositionBusinessEvent
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAfter(CounterpartyPositionState _after) addAfter(CounterpartyPositionState _after, int idx) addAfter(List<? extends CounterpartyPositionState> afters) build()Build MethodsbooleangetAfter()Specifies the after position state(s) created.The intent of a corporate action on the position.com.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.The intent attribute is meant to be specified when the event qualification cannot be programmatically inferred from the event features.getOrCreateAfter(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()setAfter(List<? extends CounterpartyPositionState> afters) setCorporateActionIntent(CorporateActionTypeEnum _corporateActionIntent) setEffectiveDate(com.rosetta.model.lib.records.Date _effectiveDate) setEventDate(com.rosetta.model.lib.records.Date _eventDate) setIntent(PositionEventIntentEnum _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.common.CounterpartyPositionBusinessEvent
getType, metaData, processMethods inherited from interface cdm.event.common.CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
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
-
after
-
-
Constructor Details
-
CounterpartyPositionBusinessEventBuilderImpl
public CounterpartyPositionBusinessEventBuilderImpl()
-
-
Method Details
-
getIntent
@RosettaAttribute(value="intent", isRequired=true) @RuneAttribute(value="intent", isRequired=true) public PositionEventIntentEnum getIntent()Description copied from interface:CounterpartyPositionBusinessEventThe 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.- Specified by:
getIntentin interfaceCounterpartyPositionBusinessEvent
-
getCorporateActionIntent
@RosettaAttribute("corporateActionIntent") @RuneAttribute("corporateActionIntent") public CorporateActionTypeEnum getCorporateActionIntent()Description copied from interface:CounterpartyPositionBusinessEventThe intent of a corporate action on the position.- Specified by:
getCorporateActionIntentin interfaceCounterpartyPositionBusinessEvent
-
getEventDate
@RosettaAttribute("eventDate") @RuneAttribute("eventDate") public com.rosetta.model.lib.records.Date getEventDate()Description copied from interface:CounterpartyPositionBusinessEventSpecifies 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 interfaceCounterpartyPositionBusinessEvent
-
getEffectiveDate
@RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public com.rosetta.model.lib.records.Date getEffectiveDate()Description copied from interface:CounterpartyPositionBusinessEventThe date on which the event contractually takes effect, when different from the event date.- Specified by:
getEffectiveDatein interfaceCounterpartyPositionBusinessEvent
-
getPackageInformation
@RosettaAttribute("packageInformation") @RuneAttribute("packageInformation") public IdentifiedList.IdentifiedListBuilder getPackageInformation()Description copied from interface:CounterpartyPositionBusinessEventSpecifies 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 interfaceCounterpartyPositionBusinessEvent- Specified by:
getPackageInformationin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
getOrCreatePackageInformation
- Specified by:
getOrCreatePackageInformationin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
getAfter
@RosettaAttribute("after") @RuneAttribute("after") public List<? extends CounterpartyPositionState.CounterpartyPositionStateBuilder> getAfter()Description copied from interface:CounterpartyPositionBusinessEventSpecifies the after position state(s) created.- Specified by:
getAfterin interfaceCounterpartyPositionBusinessEvent- Specified by:
getAfterin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
getOrCreateAfter
- Specified by:
getOrCreateAfterin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
setIntent
@RosettaAttribute(value="intent", isRequired=true) @RuneAttribute(value="intent", isRequired=true) public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder setIntent(PositionEventIntentEnum _intent) - Specified by:
setIntentin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
setCorporateActionIntent
@RosettaAttribute("corporateActionIntent") @RuneAttribute("corporateActionIntent") public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder setCorporateActionIntent(CorporateActionTypeEnum _corporateActionIntent) - Specified by:
setCorporateActionIntentin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
setEventDate
@RosettaAttribute("eventDate") @RuneAttribute("eventDate") public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder setEventDate(com.rosetta.model.lib.records.Date _eventDate) - Specified by:
setEventDatein interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
setEffectiveDate
@RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder setEffectiveDate(com.rosetta.model.lib.records.Date _effectiveDate) - Specified by:
setEffectiveDatein interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
setPackageInformation
@RosettaAttribute("packageInformation") @RuneAttribute("packageInformation") public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder setPackageInformation(IdentifiedList _packageInformation) - Specified by:
setPackageInformationin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
addAfter
@RosettaAttribute("after") @RuneAttribute("after") public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder addAfter(CounterpartyPositionState _after) - Specified by:
addAfterin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
addAfter
public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder addAfter(CounterpartyPositionState _after, int idx) - Specified by:
addAfterin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
addAfter
public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder addAfter(List<? extends CounterpartyPositionState> afters) - Specified by:
addAfterin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
setAfter
@RuneAttribute("after") public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder setAfter(List<? extends CounterpartyPositionState> afters) - Specified by:
setAfterin interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder
-
build
Description copied from interface:CounterpartyPositionBusinessEventBuild Methods- Specified by:
buildin interfaceCounterpartyPositionBusinessEvent- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceCounterpartyPositionBusinessEvent- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfaceCounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public CounterpartyPositionBusinessEvent.CounterpartyPositionBusinessEventBuilder 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
-