Class LocalizedAttribute2MapPopulator

    • Constructor Detail

      • LocalizedAttribute2MapPopulator

        public LocalizedAttribute2MapPopulator()
    • Method Detail

      • populateToMap

        protected void populateToMap​(TypeAttributeDescriptor attr,
                                     ItemToMapConversionContext source,
                                     java.util.Map<java.lang.String,​java.lang.Object> target)
        Description copied from class: AbstractItem2MapPopulator
        Implements the logic to populate the target
        Specified by:
        populateToMap in class AbstractItem2MapPopulator<java.util.Map<java.util.Locale,​java.lang.String>>
        Parameters:
        attr - descriptor of the attribute to be populated
        source - Source used in the implementation to populate the target
        target - Populate the target with the result
      • isApplicable

        protected boolean isApplicable​(TypeAttributeDescriptor attributeDescriptor)
        Description copied from class: AbstractItem2MapPopulator
        Indicates whether this Populator is applicable to process the attribute
        Specified by:
        isApplicable in class AbstractItem2MapPopulator<java.util.Map<java.util.Locale,​java.lang.String>>
        Parameters:
        attributeDescriptor - descriptor of the attribute to make the decision about
        Returns:
        true, if the Populator is applicable; otherwise false
      • setCommonI18NService

        public void setCommonI18NService​(CommonI18NService commonI18NService)