Package cdm.observable.asset.processor
Class PriceUnitTypeHelper
java.lang.Object
cdm.observable.asset.processor.PriceUnitTypeHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<com.regnosys.rosetta.common.translation.Mapping> protected final com.rosetta.model.lib.path.RosettaPathprotected final com.rosetta.model.lib.path.RosettaPathprotected final com.rosetta.model.lib.path.RosettaPathprotected final com.regnosys.rosetta.common.translation.SynonymToEnumMapprotected final com.rosetta.model.lib.path.RosettaPath -
Constructor Summary
ConstructorsConstructorDescriptionPriceUnitTypeHelper(com.rosetta.model.lib.path.RosettaPath modelPath, com.regnosys.rosetta.common.translation.MappingContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected com.regnosys.rosetta.common.translation.MappingfindReference(com.regnosys.rosetta.common.translation.Path synonymPath, com.regnosys.rosetta.common.translation.Mapping referenceMapping) protected com.regnosys.rosetta.common.translation.PathgetBasePath(com.regnosys.rosetta.common.translation.Path synonymPath) protected Optional<com.regnosys.rosetta.common.translation.Mapping> getNonNullMappingId(com.regnosys.rosetta.common.translation.Path startsWith, String id) protected Optional<com.regnosys.rosetta.common.translation.Mapping> getPackageSpreadCurrency(com.regnosys.rosetta.common.translation.Path quoteSynonymPath) protected FinancialUnitEnumbooleanmapUnitType(com.regnosys.rosetta.common.translation.Path synonymPath, PriceSchedule.PriceScheduleBuilder priceScheduleBuilder) protected voidsetFxOptionRateUnits(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path subPath, String quoteBasis) protected String[]protected UnitType.UnitTypeBuildertoCapacityUnitEnumType(com.regnosys.rosetta.common.translation.Mapping capacityUnitMapping) protected UnitType.UnitTypeBuildertoCurrencyUnitType(com.regnosys.rosetta.common.translation.Mapping currencyMapping) protected voidupdateBuilder(PriceSchedule.PriceScheduleBuilder builder, UnitType.UnitTypeBuilder unit, UnitType.UnitTypeBuilder perUnitOf) protected booleanupdateCurrencyPerCapacityUnit(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, List<String> unitEndsWith, List<String> perUnitOfEndsWith) protected booleanupdateCurrencyPerCurrencyUnit(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, String... endsWith) protected booleanupdateCurrencyPerCurrencyUnitFromQuotedCurrencyPair(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, List<String> quoteBasisRelativePath) protected booleanupdateCurrencyPerFinancialUnit(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath, String basePathElement, List<String> endsWith, FinancialUnitEnum perUnitOf) protected static voidupdateEmptyMappings(com.regnosys.rosetta.common.translation.Path synonymPath, List<com.regnosys.rosetta.common.translation.Mapping> mappings, com.rosetta.model.lib.path.RosettaPath rosettaPath) protected booleanupdateFxOption(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path synonymPath) protected booleanupdatePackagePrice(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path valueSynonymPath) protected booleanupdatePackageSpread(PriceSchedule.PriceScheduleBuilder builder, com.regnosys.rosetta.common.translation.Path valueSynonymPath)
-
Field Details
-
modelPath
protected final com.rosetta.model.lib.path.RosettaPath modelPath -
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) -
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
-
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
-
exists
-
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
-
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)
-