Package cdm.event.common
Class PartyChangeInstruction.PartyChangeInstructionBuilderImpl
java.lang.Object
cdm.event.common.PartyChangeInstruction.PartyChangeInstructionBuilderImpl
- All Implemented Interfaces:
PartyChangeInstruction,PartyChangeInstruction.PartyChangeInstructionBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
PartyChangeInstruction
public static class PartyChangeInstruction.PartyChangeInstructionBuilderImpl
extends Object
implements PartyChangeInstruction.PartyChangeInstructionBuilder
Builder Implementation of PartyChangeInstruction
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.event.common.PartyChangeInstruction
PartyChangeInstruction.PartyChangeInstructionBuilder, PartyChangeInstruction.PartyChangeInstructionBuilderImpl, PartyChangeInstruction.PartyChangeInstructionImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AncillaryParty.AncillaryPartyBuilderprotected Counterparty.CounterpartyBuilderprotected PartyRole.PartyRoleBuilderprotected List<TradeIdentifier.TradeIdentifierBuilder> Fields inherited from interface cdm.event.common.PartyChangeInstruction
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTradeId(TradeIdentifier _tradeId) addTradeId(TradeIdentifier _tradeId, int idx) addTradeId(List<? extends TradeIdentifier> tradeIds) build()Build MethodsbooleanSpecifies an ancillary party to be added onto the new transaction, e.g. the original executing party in an allocation.The new counterparty who is stepping into the trade.getOrCreateTradeId(int index) Specifies an additional party roles to be added on to the new transaction.List<? extends TradeIdentifier.TradeIdentifierBuilder> The identifier to be assigned to the new trade post change of party.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setAncillaryParty(AncillaryParty _ancillaryParty) setCounterparty(Counterparty _counterparty) setPartyRole(PartyRole _partyRole) setTradeId(List<? extends TradeIdentifier> tradeIds) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.event.common.PartyChangeInstruction
getType, metaData, processMethods inherited from interface cdm.event.common.PartyChangeInstruction.PartyChangeInstructionBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
counterparty
-
ancillaryParty
-
partyRole
-
tradeId
-
-
Constructor Details
-
PartyChangeInstructionBuilderImpl
public PartyChangeInstructionBuilderImpl()
-
-
Method Details
-
getCounterparty
@RosettaAttribute(value="counterparty", isRequired=true) @RuneAttribute(value="counterparty", isRequired=true) public Counterparty.CounterpartyBuilder getCounterparty()Description copied from interface:PartyChangeInstructionThe new counterparty who is stepping into the trade. The stepping out counterparty is inferred based on the counterparty role that is being updated.- Specified by:
getCounterpartyin interfacePartyChangeInstruction- Specified by:
getCounterpartyin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getOrCreateCounterparty
- Specified by:
getOrCreateCounterpartyin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getAncillaryParty
@RosettaAttribute("ancillaryParty") @RuneAttribute("ancillaryParty") public AncillaryParty.AncillaryPartyBuilder getAncillaryParty()Description copied from interface:PartyChangeInstructionSpecifies an ancillary party to be added onto the new transaction, e.g. the original executing party in an allocation.- Specified by:
getAncillaryPartyin interfacePartyChangeInstruction- Specified by:
getAncillaryPartyin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getOrCreateAncillaryParty
- Specified by:
getOrCreateAncillaryPartyin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getPartyRole
@RosettaAttribute("partyRole") @RuneAttribute("partyRole") public PartyRole.PartyRoleBuilder getPartyRole()Description copied from interface:PartyChangeInstructionSpecifies an additional party roles to be added on to the new transaction.- Specified by:
getPartyRolein interfacePartyChangeInstruction- Specified by:
getPartyRolein interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getOrCreatePartyRole
- Specified by:
getOrCreatePartyRolein interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getTradeId
@RosettaAttribute(value="tradeId", isRequired=true) @RuneAttribute(value="tradeId", isRequired=true) public List<? extends TradeIdentifier.TradeIdentifierBuilder> getTradeId()Description copied from interface:PartyChangeInstructionThe identifier to be assigned to the new trade post change of party.- Specified by:
getTradeIdin interfacePartyChangeInstruction- Specified by:
getTradeIdin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
getOrCreateTradeId
- Specified by:
getOrCreateTradeIdin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
setCounterparty
@RosettaAttribute(value="counterparty", isRequired=true) @RuneAttribute(value="counterparty", isRequired=true) public PartyChangeInstruction.PartyChangeInstructionBuilder setCounterparty(Counterparty _counterparty) - Specified by:
setCounterpartyin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
setAncillaryParty
@RosettaAttribute("ancillaryParty") @RuneAttribute("ancillaryParty") public PartyChangeInstruction.PartyChangeInstructionBuilder setAncillaryParty(AncillaryParty _ancillaryParty) - Specified by:
setAncillaryPartyin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
setPartyRole
@RosettaAttribute("partyRole") @RuneAttribute("partyRole") public PartyChangeInstruction.PartyChangeInstructionBuilder setPartyRole(PartyRole _partyRole) - Specified by:
setPartyRolein interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
addTradeId
@RosettaAttribute(value="tradeId", isRequired=true) @RuneAttribute(value="tradeId", isRequired=true) public PartyChangeInstruction.PartyChangeInstructionBuilder addTradeId(TradeIdentifier _tradeId) - Specified by:
addTradeIdin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
addTradeId
public PartyChangeInstruction.PartyChangeInstructionBuilder addTradeId(TradeIdentifier _tradeId, int idx) - Specified by:
addTradeIdin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
addTradeId
public PartyChangeInstruction.PartyChangeInstructionBuilder addTradeId(List<? extends TradeIdentifier> tradeIds) - Specified by:
addTradeIdin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
setTradeId
@RuneAttribute("tradeId") public PartyChangeInstruction.PartyChangeInstructionBuilder setTradeId(List<? extends TradeIdentifier> tradeIds) - Specified by:
setTradeIdin interfacePartyChangeInstruction.PartyChangeInstructionBuilder
-
build
Description copied from interface:PartyChangeInstructionBuild Methods- Specified by:
buildin interfacePartyChangeInstruction- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfacePartyChangeInstruction- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfacePartyChangeInstruction.PartyChangeInstructionBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public PartyChangeInstruction.PartyChangeInstructionBuilder 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
-