Class PriceUnitTypeHelper

java.lang.Object
cdm.observable.asset.processor.PriceUnitTypeHelper

public class PriceUnitTypeHelper extends Object
  • Field Details

    • modelPath

      protected final com.rosetta.model.lib.path.RosettaPath modelPath
    • mappings

      protected final List<com.regnosys.rosetta.common.translation.Mapping> mappings
    • synonymToEnumMap

      protected final com.regnosys.rosetta.common.translation.SynonymToEnumMap synonymToEnumMap
    • unitCurrencyModelPath

      protected final com.rosetta.model.lib.path.RosettaPath unitCurrencyModelPath
    • perUnitOfCurrencyModelPath

      protected final com.rosetta.model.lib.path.RosettaPath perUnitOfCurrencyModelPath
    • perUnitOfCapacityModelPath

      protected final com.rosetta.model.lib.path.RosettaPath perUnitOfCapacityModelPath
  • Constructor Details

    • PriceUnitTypeHelper

      public PriceUnitTypeHelper(com.rosetta.model.lib.path.RosettaPath modelPath, com.regnosys.rosetta.common.translation.MappingContext context)
  • Method Details

    • mapUnitType

      public boolean mapUnitType(com.regnosys.rosetta.common.translation.Path synonymPath, PriceSchedule.PriceScheduleBuilder priceScheduleBuilder)
    • getPerUnitOfIndexOrShare

      protected FinancialUnitEnum getPerUnitOfIndexOrShare()
    • updateCurrencyPerCurrencyUnit

      protected boolean updateCurrencyPerCurrencyUnit(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, String... endsWith)
    • findReference

      protected com.regnosys.rosetta.common.translation.Mapping findReference(com.regnosys.rosetta.common.translation.Path synonymPath, com.regnosys.rosetta.common.translation.Mapping referenceMapping)
    • updateCurrencyPerCurrencyUnitFromQuotedCurrencyPair

      protected boolean updateCurrencyPerCurrencyUnitFromQuotedCurrencyPair(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, List<String> quoteBasisRelativePath)
    • updateCurrencyPerFinancialUnit

      protected boolean updateCurrencyPerFinancialUnit(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, List<String> endsWith, FinancialUnitEnum perUnitOf)
    • updateCurrencyPerCapacityUnit

      protected boolean updateCurrencyPerCapacityUnit(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, List<String> unitEndsWith, List<String> perUnitOfEndsWith)
    • updatePackagePrice

      protected boolean updatePackagePrice(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path valueSynonymPath)
    • updatePackageSpread

      protected boolean updatePackageSpread(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path valueSynonymPath)
    • getPackageSpreadCurrency

      protected Optional<com.regnosys.rosetta.common.translation.Mapping> getPackageSpreadCurrency(com.regnosys.rosetta.common.translation.Path quoteSynonymPath)
    • updateBuilder

      protected void updateBuilder(PriceSchedule.PriceScheduleBuilder builder, UnitType.UnitTypeBuilder unit, UnitType.UnitTypeBuilder perUnitOf)
    • toCurrencyUnitType

      protected UnitType.UnitTypeBuilder toCurrencyUnitType(com.regnosys.rosetta.common.translation.Mapping currencyMapping)
    • toCapacityUnitEnumType

      protected UnitType.UnitTypeBuilder toCapacityUnitEnumType(com.regnosys.rosetta.common.translation.Mapping capacityUnitMapping)
    • getNonNullMappingId

      protected Optional<com.regnosys.rosetta.common.translation.Mapping> getNonNullMappingId(com.regnosys.rosetta.common.translation.Path startsWith, String id)
    • exists

      protected boolean exists(List<String> pathEndsWith)
    • updateFxOption

      protected boolean updateFxOption(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath)
    • setFxOptionRateUnits

      protected void setFxOptionRateUnits(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path subPath, String quoteBasis)
    • getBasePath

      protected com.regnosys.rosetta.common.translation.Path getBasePath(com.regnosys.rosetta.common.translation.Path synonymPath)
    • toArray

      protected String[] toArray(List<String> a)
    • updateEmptyMappings

      protected static void updateEmptyMappings(com.regnosys.rosetta.common.translation.Path synonymPath, List<com.regnosys.rosetta.common.translation.Mapping> mappings, com.rosetta.model.lib.path.RosettaPath rosettaPath)