Package cdm.observable.asset
Class PriceQuantity.PriceQuantityBuilderImpl
java.lang.Object
cdm.observable.asset.PriceQuantity.PriceQuantityBuilderImpl
- All Implemented Interfaces:
PriceQuantity,PriceQuantity.PriceQuantityBuilder,com.rosetta.model.lib.GlobalKey,com.rosetta.model.lib.GlobalKey.GlobalKeyBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
PriceQuantity
public static class PriceQuantity.PriceQuantityBuilderImpl
extends Object
implements PriceQuantity.PriceQuantityBuilder
Builder Implementation of PriceQuantity
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rosetta.model.lib.GlobalKey
com.rosetta.model.lib.GlobalKey.GlobalKeyBuilderNested classes/interfaces inherited from interface cdm.observable.asset.PriceQuantity
PriceQuantity.PriceQuantityBuilder, PriceQuantity.PriceQuantityBuilderImpl, PriceQuantity.PriceQuantityImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.rosetta.model.metafields.MetaFields.MetaFieldsBuilderprotected List<FieldWithMetaNonNegativeQuantitySchedule.FieldWithMetaNonNegativeQuantityScheduleBuilder> Fields inherited from interface cdm.observable.asset.PriceQuantity
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPrice(FieldWithMetaPriceSchedule _price) addPrice(FieldWithMetaPriceSchedule _price, int idx) addPrice(List<? extends FieldWithMetaPriceSchedule> prices) addPriceValue(PriceSchedule _price) addPriceValue(PriceSchedule _price, int idx) addPriceValue(List<? extends PriceSchedule> prices) addQuantity(FieldWithMetaNonNegativeQuantitySchedule _quantity, int idx) addQuantity(List<? extends FieldWithMetaNonNegativeQuantitySchedule> quantitys) addQuantityValue(NonNegativeQuantitySchedule _quantity) addQuantityValue(NonNegativeQuantitySchedule _quantity, int idx) addQuantityValue(List<? extends NonNegativeQuantitySchedule> quantitys) build()Build MethodsbooleanSpecifies the date at which the price and quantity become effective.com.rosetta.model.metafields.MetaFields.MetaFieldsBuildergetMeta()Specifies the object to be observed for a price, it could be an asset or an index.com.rosetta.model.metafields.MetaFields.MetaFieldsBuildergetOrCreatePrice(int index) getOrCreateQuantity(int index) getPrice()Specifies a price to be used for trade amounts and other purposes.List<? extends FieldWithMetaNonNegativeQuantitySchedule.FieldWithMetaNonNegativeQuantityScheduleBuilder> Specifies a quantity to be associated with an event, for example a trade amount.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setEffectiveDate(AdjustableOrRelativeDate _effectiveDate) setMeta(com.rosetta.model.metafields.MetaFields _meta) setObservable(FieldWithMetaObservable _observable) setObservableValue(Observable _observable) setPrice(List<? extends FieldWithMetaPriceSchedule> prices) setPriceValue(List<? extends PriceSchedule> prices) setQuantity(List<? extends FieldWithMetaNonNegativeQuantitySchedule> quantitys) setQuantityValue(List<? extends NonNegativeQuantitySchedule> quantitys) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.observable.asset.PriceQuantity
getType, metaData, processMethods inherited from interface cdm.observable.asset.PriceQuantity.PriceQuantityBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
price
-
quantity
-
observable
-
effectiveDate
-
meta
protected com.rosetta.model.metafields.MetaFields.MetaFieldsBuilder meta
-
-
Constructor Details
-
PriceQuantityBuilderImpl
public PriceQuantityBuilderImpl()
-
-
Method Details
-
getPrice
@RosettaAttribute("price") @Accessor(GETTER) @Multi @RuneAttribute("price") @RuneScopedAttributeKey public List<? extends FieldWithMetaPriceSchedule.FieldWithMetaPriceScheduleBuilder> getPrice()Description copied from interface:PriceQuantitySpecifies a price to be used for trade amounts and other purposes.- Specified by:
getPricein interfacePriceQuantity- Specified by:
getPricein interfacePriceQuantity.PriceQuantityBuilder
-
getOrCreatePrice
- Specified by:
getOrCreatePricein interfacePriceQuantity.PriceQuantityBuilder
-
getQuantity
@RosettaAttribute("quantity") @Accessor(GETTER) @Multi @RuneAttribute("quantity") @RuneScopedAttributeKey public List<? extends FieldWithMetaNonNegativeQuantitySchedule.FieldWithMetaNonNegativeQuantityScheduleBuilder> getQuantity()Description copied from interface:PriceQuantitySpecifies a quantity to be associated with an event, for example a trade amount.- Specified by:
getQuantityin interfacePriceQuantity- Specified by:
getQuantityin interfacePriceQuantity.PriceQuantityBuilder
-
getOrCreateQuantity
public FieldWithMetaNonNegativeQuantitySchedule.FieldWithMetaNonNegativeQuantityScheduleBuilder getOrCreateQuantity(int index) - Specified by:
getOrCreateQuantityin interfacePriceQuantity.PriceQuantityBuilder
-
getObservable
@RosettaAttribute("observable") @Accessor(GETTER) @RuneAttribute("observable") @RuneScopedAttributeKey public FieldWithMetaObservable.FieldWithMetaObservableBuilder getObservable()Description copied from interface:PriceQuantitySpecifies the object to be observed for a price, it could be an asset or an index. The cardinality is optional as some quantity / price cases have no observable (e.g. a fixed rate in a given currency).- Specified by:
getObservablein interfacePriceQuantity- Specified by:
getObservablein interfacePriceQuantity.PriceQuantityBuilder
-
getOrCreateObservable
- Specified by:
getOrCreateObservablein interfacePriceQuantity.PriceQuantityBuilder
-
getEffectiveDate
@RosettaAttribute("effectiveDate") @Accessor(GETTER) @RuneAttribute("effectiveDate") public AdjustableOrRelativeDate.AdjustableOrRelativeDateBuilder getEffectiveDate()Description copied from interface:PriceQuantitySpecifies the date at which the price and quantity become effective. This day may be subject to adjustment in accordance with a business day convention, or could be specified as relative to a trade date, for instance. Optional cardinality, as the effective date is usually specified in the product definition, so it may only need to be specified as part of the PriceQuantity in an increase/decrease scenario for an existing trade.- Specified by:
getEffectiveDatein interfacePriceQuantity- Specified by:
getEffectiveDatein interfacePriceQuantity.PriceQuantityBuilder
-
getOrCreateEffectiveDate
- Specified by:
getOrCreateEffectiveDatein interfacePriceQuantity.PriceQuantityBuilder
-
getMeta
@RosettaAttribute("meta") @Accessor(GETTER) @RuneAttribute("meta") @RuneMetaType public com.rosetta.model.metafields.MetaFields.MetaFieldsBuilder getMeta()- Specified by:
getMetain interfacecom.rosetta.model.lib.GlobalKey- Specified by:
getMetain interfacecom.rosetta.model.lib.GlobalKey.GlobalKeyBuilder- Specified by:
getMetain interfacePriceQuantity- Specified by:
getMetain interfacePriceQuantity.PriceQuantityBuilder
-
getOrCreateMeta
public com.rosetta.model.metafields.MetaFields.MetaFieldsBuilder getOrCreateMeta()- Specified by:
getOrCreateMetain interfacecom.rosetta.model.lib.GlobalKey.GlobalKeyBuilder- Specified by:
getOrCreateMetain interfacePriceQuantity.PriceQuantityBuilder
-
addPrice
@RosettaAttribute("price") @Accessor(ADDER) @Multi @RuneAttribute("price") @RuneScopedAttributeKey public PriceQuantity.PriceQuantityBuilder addPrice(FieldWithMetaPriceSchedule _price) - Specified by:
addPricein interfacePriceQuantity.PriceQuantityBuilder
-
addPrice
- Specified by:
addPricein interfacePriceQuantity.PriceQuantityBuilder
-
addPriceValue
- Specified by:
addPriceValuein interfacePriceQuantity.PriceQuantityBuilder
-
addPriceValue
- Specified by:
addPriceValuein interfacePriceQuantity.PriceQuantityBuilder
-
addPrice
public PriceQuantity.PriceQuantityBuilder addPrice(List<? extends FieldWithMetaPriceSchedule> prices) - Specified by:
addPricein interfacePriceQuantity.PriceQuantityBuilder
-
setPrice
@RosettaAttribute("price") @Accessor(SETTER) @Multi @RuneAttribute("price") @RuneScopedAttributeKey public PriceQuantity.PriceQuantityBuilder setPrice(List<? extends FieldWithMetaPriceSchedule> prices) - Specified by:
setPricein interfacePriceQuantity.PriceQuantityBuilder
-
addPriceValue
- Specified by:
addPriceValuein interfacePriceQuantity.PriceQuantityBuilder
-
setPriceValue
- Specified by:
setPriceValuein interfacePriceQuantity.PriceQuantityBuilder
-
addQuantity
@RosettaAttribute("quantity") @Accessor(ADDER) @Multi @RuneAttribute("quantity") @RuneScopedAttributeKey public PriceQuantity.PriceQuantityBuilder addQuantity(FieldWithMetaNonNegativeQuantitySchedule _quantity) - Specified by:
addQuantityin interfacePriceQuantity.PriceQuantityBuilder
-
addQuantity
public PriceQuantity.PriceQuantityBuilder addQuantity(FieldWithMetaNonNegativeQuantitySchedule _quantity, int idx) - Specified by:
addQuantityin interfacePriceQuantity.PriceQuantityBuilder
-
addQuantityValue
- Specified by:
addQuantityValuein interfacePriceQuantity.PriceQuantityBuilder
-
addQuantityValue
public PriceQuantity.PriceQuantityBuilder addQuantityValue(NonNegativeQuantitySchedule _quantity, int idx) - Specified by:
addQuantityValuein interfacePriceQuantity.PriceQuantityBuilder
-
addQuantity
public PriceQuantity.PriceQuantityBuilder addQuantity(List<? extends FieldWithMetaNonNegativeQuantitySchedule> quantitys) - Specified by:
addQuantityin interfacePriceQuantity.PriceQuantityBuilder
-
setQuantity
@RosettaAttribute("quantity") @Accessor(SETTER) @Multi @RuneAttribute("quantity") @RuneScopedAttributeKey public PriceQuantity.PriceQuantityBuilder setQuantity(List<? extends FieldWithMetaNonNegativeQuantitySchedule> quantitys) - Specified by:
setQuantityin interfacePriceQuantity.PriceQuantityBuilder
-
addQuantityValue
public PriceQuantity.PriceQuantityBuilder addQuantityValue(List<? extends NonNegativeQuantitySchedule> quantitys) - Specified by:
addQuantityValuein interfacePriceQuantity.PriceQuantityBuilder
-
setQuantityValue
public PriceQuantity.PriceQuantityBuilder setQuantityValue(List<? extends NonNegativeQuantitySchedule> quantitys) - Specified by:
setQuantityValuein interfacePriceQuantity.PriceQuantityBuilder
-
setObservable
@RosettaAttribute("observable") @Accessor(SETTER) @RuneAttribute("observable") @RuneScopedAttributeKey public PriceQuantity.PriceQuantityBuilder setObservable(FieldWithMetaObservable _observable) - Specified by:
setObservablein interfacePriceQuantity.PriceQuantityBuilder
-
setObservableValue
- Specified by:
setObservableValuein interfacePriceQuantity.PriceQuantityBuilder
-
setEffectiveDate
@RosettaAttribute("effectiveDate") @Accessor(SETTER) @RuneAttribute("effectiveDate") public PriceQuantity.PriceQuantityBuilder setEffectiveDate(AdjustableOrRelativeDate _effectiveDate) - Specified by:
setEffectiveDatein interfacePriceQuantity.PriceQuantityBuilder
-
setMeta
@RosettaAttribute("meta") @Accessor(SETTER) @RuneAttribute("meta") @RuneMetaType public PriceQuantity.PriceQuantityBuilder setMeta(com.rosetta.model.metafields.MetaFields _meta) - Specified by:
setMetain interfacePriceQuantity.PriceQuantityBuilder
-
build
Description copied from interface:PriceQuantityBuild Methods- Specified by:
buildin interfacePriceQuantity- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfacePriceQuantity- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfacePriceQuantity.PriceQuantityBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public PriceQuantity.PriceQuantityBuilder 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
-