Interface Offset

All Superinterfaces:
com.rosetta.model.lib.GlobalKey, Period, com.rosetta.model.lib.RosettaModelObject
All Known Subinterfaces:
AdjustedRelativeDateOffset, AdjustedRelativeDateOffset.AdjustedRelativeDateOffsetBuilder, FxFixingDate, FxFixingDate.FxFixingDateBuilder, Offset.OffsetBuilder, RelativeDateOffset, RelativeDateOffset.RelativeDateOffsetBuilder, RelativeDates, RelativeDates.RelativeDatesBuilder
All Known Implementing Classes:
AdjustedRelativeDateOffset.AdjustedRelativeDateOffsetBuilderImpl, AdjustedRelativeDateOffset.AdjustedRelativeDateOffsetImpl, FxFixingDate.FxFixingDateBuilderImpl, FxFixingDate.FxFixingDateImpl, Offset.OffsetBuilderImpl, Offset.OffsetImpl, RelativeDateOffset.RelativeDateOffsetBuilderImpl, RelativeDateOffset.RelativeDateOffsetImpl, RelativeDates.RelativeDatesBuilderImpl, RelativeDates.RelativeDatesImpl

@RosettaDataType(value="Offset", builder=OffsetBuilderImpl.class, version="5.30.0") @RuneDataType(value="Offset", model="cdm", builder=OffsetBuilderImpl.class, version="5.30.0") public interface Offset extends Period
A class defining an offset used in calculating a new date relative to a reference date, e.g. calendar days, business days, commodity Business days, etc.
Version:
5.30.0
  • Field Details

  • Method Details

    • getDayType

      DayTypeEnum getDayType()
      In the case of an offset specified as a number of days, this element defines whether consideration is given as to whether a day is a good business day or not. If a day type of business days is specified then non-business days are ignored when calculating the offset. The financial business centers to use for determination of business days are implied by the context in which this element is used. This element must only be included when the offset is specified as a number of days. If the offset is zero days then the dayType element should not be included.
    • build

      Offset build()
      Build Methods
      Specified by:
      build in interface Period
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      Specified by:
      toBuilder in interface Period
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • builder

      static Offset.OffsetBuilder builder()
    • metaData

      default com.rosetta.model.lib.meta.RosettaMetaData<? extends Offset> metaData()
      Utility Methods
      Specified by:
      metaData in interface Period
      Specified by:
      metaData in interface com.rosetta.model.lib.RosettaModelObject
    • getType

      @RuneAttribute("@type") default Class<? extends Offset> getType()
      Specified by:
      getType in interface Period
      Specified by:
      getType in interface com.rosetta.model.lib.RosettaModelObject
    • process

      default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor)
      Specified by:
      process in interface Period
      Specified by:
      process in interface com.rosetta.model.lib.RosettaModelObject