Package cdm.product.common.settlement
Class RollFeature.RollFeatureBuilderImpl
java.lang.Object
cdm.product.common.settlement.RollFeature.RollFeatureBuilderImpl
- All Implemented Interfaces:
RollFeature,RollFeature.RollFeatureBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
RollFeature
public static class RollFeature.RollFeatureBuilderImpl
extends Object
implements RollFeature.RollFeatureBuilder
Builder Implementation of RollFeature
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.product.common.settlement.RollFeature
RollFeature.RollFeatureBuilder, RollFeature.RollFeatureBuilderImpl, RollFeature.RollFeatureImpl -
Field Summary
FieldsFields inherited from interface cdm.product.common.settlement.RollFeature
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanSpecifies, for a Commodity Transaction that references a delivery date for a listed future, the day on which the specified future will roll to the next nearby month prior to the expiration of the referenced future.Used in conjunction with an exchange-based pricing source.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setDeliveryDateRollConvention(Offset _deliveryDateRollConvention) setRollSourceCalendar(RollSourceCalendarEnum _rollSourceCalendar) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.product.common.settlement.RollFeature
getType, metaData, processMethods inherited from interface cdm.product.common.settlement.RollFeature.RollFeatureBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
rollSourceCalendar
-
deliveryDateRollConvention
-
-
Constructor Details
-
RollFeatureBuilderImpl
public RollFeatureBuilderImpl()
-
-
Method Details
-
getRollSourceCalendar
@RosettaAttribute("rollSourceCalendar") @RuneAttribute("rollSourceCalendar") public RollSourceCalendarEnum getRollSourceCalendar()Description copied from interface:RollFeatureUsed in conjunction with an exchange-based pricing source. Identifies a date source calendar from which the pricing dates and thus roll to the next contract will be based off (e.g. pricing is based on the NYMEX WTI First Nearby Futures Contract, if Future is chosen, the pricing will roll to the next futures contract on expiration, if ListedOption is chosen, the pricing will roll to the next futures contract on the Option expiration date which is three business days before the expiration of the NYMEX WTI futures contract.) Omitting this element will result in the default behavior expected with the pricing source described within the commodity element.- Specified by:
getRollSourceCalendarin interfaceRollFeature
-
getDeliveryDateRollConvention
@RosettaAttribute("deliveryDateRollConvention") @RuneAttribute("deliveryDateRollConvention") public Offset.OffsetBuilder getDeliveryDateRollConvention()Description copied from interface:RollFeatureSpecifies, for a Commodity Transaction that references a delivery date for a listed future, the day on which the specified future will roll to the next nearby month prior to the expiration of the referenced future. If the future will not roll at all - i.e. the price will be taken from the expiring contract, 0 should be specified here. If the future will roll to the next nearby on the last trading day - i.e. the price will be taken from the next nearby on the last trading day, then 1 should be specified and so on.- Specified by:
getDeliveryDateRollConventionin interfaceRollFeature- Specified by:
getDeliveryDateRollConventionin interfaceRollFeature.RollFeatureBuilder
-
getOrCreateDeliveryDateRollConvention
- Specified by:
getOrCreateDeliveryDateRollConventionin interfaceRollFeature.RollFeatureBuilder
-
setRollSourceCalendar
@RosettaAttribute("rollSourceCalendar") @RuneAttribute("rollSourceCalendar") public RollFeature.RollFeatureBuilder setRollSourceCalendar(RollSourceCalendarEnum _rollSourceCalendar) - Specified by:
setRollSourceCalendarin interfaceRollFeature.RollFeatureBuilder
-
setDeliveryDateRollConvention
@RosettaAttribute("deliveryDateRollConvention") @RuneAttribute("deliveryDateRollConvention") public RollFeature.RollFeatureBuilder setDeliveryDateRollConvention(Offset _deliveryDateRollConvention) - Specified by:
setDeliveryDateRollConventionin interfaceRollFeature.RollFeatureBuilder
-
build
Description copied from interface:RollFeatureBuild Methods- Specified by:
buildin interfaceRollFeature- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceRollFeature- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfaceRollFeature.RollFeatureBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public RollFeature.RollFeatureBuilder 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
-