Class PriceQuantityHelper
java.lang.Object
cdm.product.common.settlement.processor.PriceQuantityHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.regnosys.rosetta.common.translation.PathincrementPathElementIndex(com.regnosys.rosetta.common.translation.Path mappedModelPath, String lastElement, int indexDiff) If xml values have been mapped to the model instance, each Mapping will contain the same path.toReferencablePriceBuilder(BigDecimal price, UnitType unitOfAmount, UnitType perUnitOfAmount, PriceTypeEnum priceType, ArithmeticOperationEnum arithmeticOperator, PriceComposite priceComposite) Creates a Price instance that can be referenced, e.g. the meta key is added with the DOCUMENT scope.Creates a Quantity instance that can be referenced, e.g. the meta key is added with the DOCUMENT scope.
-
Constructor Details
-
PriceQuantityHelper
public PriceQuantityHelper()
-
-
Method Details
-
incrementPathElementIndex
public static com.regnosys.rosetta.common.translation.Path incrementPathElementIndex(com.regnosys.rosetta.common.translation.Path mappedModelPath, String lastElement, int indexDiff) If xml values have been mapped to the model instance, each Mapping will contain the same path. If fixed with a mapper, then the path must be updated accordingly. -
toReferencablePriceBuilder
public static FieldWithMetaPriceSchedule.FieldWithMetaPriceScheduleBuilder toReferencablePriceBuilder(BigDecimal price, UnitType unitOfAmount, UnitType perUnitOfAmount, PriceTypeEnum priceType, ArithmeticOperationEnum arithmeticOperator, PriceComposite priceComposite) Creates a Price instance that can be referenced, e.g. the meta key is added with the DOCUMENT scope. -
toReferencableQuantityBuilder
public static FieldWithMetaNonNegativeQuantitySchedule.FieldWithMetaNonNegativeQuantityScheduleBuilder toReferencableQuantityBuilder(NonNegativeQuantitySchedule quantity) Creates a Quantity instance that can be referenced, e.g. the meta key is added with the DOCUMENT scope.
-