Package cdm.event.common
Interface Lineage
- All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
- All Known Subinterfaces:
Lineage.LineageBuilder
- All Known Implementing Classes:
Lineage.LineageBuilderImpl,Lineage.LineageImpl
@RosettaDataType(value="Lineage",
builder=LineageBuilderImpl.class,
version="5.30.0")
@RuneDataType(value="Lineage",
model="cdm",
builder=LineageBuilderImpl.class,
version="5.30.0")
public interface Lineage
extends com.rosetta.model.lib.RosettaModelObject
A class to provide lineage information across lifecycle events through a pointer or set of pointers into the event(s), contract(s) and, possibly, payout components that the event is dependent on or relates to. As an example, if an contractFormation event is corrected, the correction event will have a lineage into the initial event, which takes the form of a globalKey into that initial contract formation event. Two referencing mechanisms are provided as part of the CDM: either the globalKey, which corresponds to the hash value of the CDM class which is referred to, or a reference qualifier which is meant to provide support for the ingestion of xml documents with id/href mechanisms. The CDM recommends the use of the globalKey and provides a default implementation which is accessible in the generated code through org.isda.cdm.globalKey.GlobalKeyHashCalculator. If implementers want to use an alternative hashing mechanism, the API in which they need to plug it is com.rosetta.model.lib.HashFunction.
- Version:
- 5.30.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder Interfacestatic classBuilder Implementation of Lineagestatic classImmutable Implementation of Lineage -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsstatic Lineage.LineageBuilderbuilder()List<? extends ReferenceWithMetaWorkflowStep> The reference to the instantiation of an Event object, either through a globalKey or an xml-derived id/href mechanism.List<? extends ReferenceWithMetaPortfolioState> The reference to the previous state of a Portfolio, in a chain of Events leading up to a build of that Portfolio as the holding of Product(s) in specific Quantity(ies).List<? extends ReferenceWithMetaTrade> Getter MethodsgetType()default com.rosetta.model.lib.meta.RosettaMetaData<? extends Lineage> metaData()Utility Methodsdefault voidprocess(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) Methods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Field Details
-
metaData
-
-
Method Details
-
getTradeReference
List<? extends ReferenceWithMetaTrade> getTradeReference()Getter Methods -
getEventReference
List<? extends ReferenceWithMetaWorkflowStep> getEventReference()The reference to the instantiation of an Event object, either through a globalKey or an xml-derived id/href mechanism. The definition associated to the Lineage class provides more details with respect to those referencing approaches, their expected usage and available implementation. -
getPortfolioStateReference
List<? extends ReferenceWithMetaPortfolioState> getPortfolioStateReference()The reference to the previous state of a Portfolio, in a chain of Events leading up to a build of that Portfolio as the holding of Product(s) in specific Quantity(ies). As part of the PortfolioState object, a pointer to the previous PortfolioState is provided through a Lineage object, together with pointer(s) to the Event or set of Events leading up to the current (new) state. -
build
Lineage build()Build Methods- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
Lineage.LineageBuilder toBuilder()- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
builder
-
metaData
Utility Methods- Specified by:
metaDatain interfacecom.rosetta.model.lib.RosettaModelObject
-
getType
- Specified by:
getTypein interfacecom.rosetta.model.lib.RosettaModelObject
-
process
default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) - Specified by:
processin interfacecom.rosetta.model.lib.RosettaModelObject
-