Class I18nComponentTypeAttributePopulator
java.lang.Object
de.hybris.platform.cmsfacades.types.populator.I18nComponentTypeAttributePopulator
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class I18nComponentTypeAttributePopulator
extends Object
implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
This populator will populate
ComponentTypeAttributeData.setI18nKey(String) using the following
nomenclature:
[prefix].[item type].[qualifier].[suffix]
The I18N key nomenclature is made up of the following chunks:
- prefix: a string provided via spring injection to help
- suffix: a string provided via spring injection to help
- item type: the platform type code that the given attribute belongs to
- qualifier: the platform attribute qualifier of the given attribute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringvoidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target) Populate the target instance with values from the source instance.voidvoid
-
Constructor Details
-
I18nComponentTypeAttributePopulator
public I18nComponentTypeAttributePopulator()
-
-
Method Details
-
populate
public void populate(AttributeDescriptorModel source, ComponentTypeAttributeData target) throws ConversionException Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AttributeDescriptorModel,ComponentTypeAttributeData> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-