Package cdm.base.staticdata.asset.common
Class Asset.AssetBuilderImpl
java.lang.Object
cdm.base.staticdata.asset.common.Asset.AssetBuilderImpl
- All Implemented Interfaces:
Asset,Asset.AssetBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Direct Known Subclasses:
SpecificAsset.SpecificAssetBuilderImpl,TransferableProduct.TransferableProductBuilderImpl
- Enclosing interface:
Asset
Builder Implementation of Asset
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.staticdata.asset.common.Asset
Asset.AssetBuilder, Asset.AssetBuilderImpl, Asset.AssetImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Cash.CashBuilderprotected Commodity.CommodityBuilderprotected DigitalAsset.DigitalAssetBuilderprotected Instrument.InstrumentBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleangetCash()An Asset that consists solely of a monetary holding in a currency.An Asset comprised of raw or refined materials or agricultural products, eg gold, oil or wheat.An Asset that exists only in digital form, eg Bitcoin or Ethereum; excludes the digital representation of other Assets.An asset that is issued by one party to one or more others; Instrument is also a choice data type.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setCommodity(Commodity _commodity) setDigitalAsset(DigitalAsset _digitalAsset) setInstrument(Instrument _instrument) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.base.staticdata.asset.common.Asset.AssetBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
cash
-
commodity
-
digitalAsset
-
instrument
-
-
Constructor Details
-
AssetBuilderImpl
public AssetBuilderImpl()
-
-
Method Details
-
getCash
@RosettaAttribute("Cash") @Accessor(GETTER) @RuneAttribute("Cash") public Cash.CashBuilder getCash()Description copied from interface:AssetAn Asset that consists solely of a monetary holding in a currency.- Specified by:
getCashin interfaceAsset- Specified by:
getCashin interfaceAsset.AssetBuilder
-
getOrCreateCash
- Specified by:
getOrCreateCashin interfaceAsset.AssetBuilder
-
getCommodity
@RosettaAttribute("Commodity") @Accessor(GETTER) @RuneAttribute("Commodity") public Commodity.CommodityBuilder getCommodity()Description copied from interface:AssetAn Asset comprised of raw or refined materials or agricultural products, eg gold, oil or wheat.- Specified by:
getCommodityin interfaceAsset- Specified by:
getCommodityin interfaceAsset.AssetBuilder
-
getOrCreateCommodity
- Specified by:
getOrCreateCommodityin interfaceAsset.AssetBuilder
-
getDigitalAsset
@RosettaAttribute("DigitalAsset") @Accessor(GETTER) @RuneAttribute("DigitalAsset") public DigitalAsset.DigitalAssetBuilder getDigitalAsset()Description copied from interface:AssetAn Asset that exists only in digital form, eg Bitcoin or Ethereum; excludes the digital representation of other Assets.- Specified by:
getDigitalAssetin interfaceAsset- Specified by:
getDigitalAssetin interfaceAsset.AssetBuilder
-
getOrCreateDigitalAsset
- Specified by:
getOrCreateDigitalAssetin interfaceAsset.AssetBuilder
-
getInstrument
@RosettaAttribute("Instrument") @Accessor(GETTER) @RuneAttribute("Instrument") public Instrument.InstrumentBuilder getInstrument()Description copied from interface:AssetAn asset that is issued by one party to one or more others; Instrument is also a choice data type.- Specified by:
getInstrumentin interfaceAsset- Specified by:
getInstrumentin interfaceAsset.AssetBuilder
-
getOrCreateInstrument
- Specified by:
getOrCreateInstrumentin interfaceAsset.AssetBuilder
-
setCash
@RosettaAttribute("Cash") @Accessor(SETTER) @RuneAttribute("Cash") public Asset.AssetBuilder setCash(Cash _cash) - Specified by:
setCashin interfaceAsset.AssetBuilder
-
setCommodity
@RosettaAttribute("Commodity") @Accessor(SETTER) @RuneAttribute("Commodity") public Asset.AssetBuilder setCommodity(Commodity _commodity) - Specified by:
setCommodityin interfaceAsset.AssetBuilder
-
setDigitalAsset
@RosettaAttribute("DigitalAsset") @Accessor(SETTER) @RuneAttribute("DigitalAsset") public Asset.AssetBuilder setDigitalAsset(DigitalAsset _digitalAsset) - Specified by:
setDigitalAssetin interfaceAsset.AssetBuilder
-
setInstrument
@RosettaAttribute("Instrument") @Accessor(SETTER) @RuneAttribute("Instrument") public Asset.AssetBuilder setInstrument(Instrument _instrument) - Specified by:
setInstrumentin interfaceAsset.AssetBuilder
-
build
Description copied from interface:AssetBuild Methods -
toBuilder
-
prune
- Specified by:
prunein interfaceAsset.AssetBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public Asset.AssetBuilder 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
-