Class SkuMapper

java.lang.Object
com.skava.search.mapper.SkuMapper

public class SkuMapper extends Object
Instantiates a new sku properties mapper.
  • Constructor Details

    • SkuMapper

      public SkuMapper()
  • Method Details

    • map

      public Map<String,String> map(List<SkuProperty> sourceFieldValue)
      This method is used to convert the sku properties list into mapper where key and value pair as string.
      Parameters:
      sourceFieldValue - Indicates the list of SkuProperty, contains the response of a SKU property, such as value, locale, etc.
      Returns:
      Returns the mapping object Map by converting the sku properties as key value pair mapper.
    • map

      public List<PriceModel> map(Map<String,String> priceFacets)
      This method is used to convert the Price Facts into price model with in Sku.
      Parameters:
      priceFacets - Indicates the list of Map, contains the response of a Price facts property, such as value, locale, etc.
      Returns:
      Returns the mapping object List by converting the sku prices as list.