Class I18nComponentTypePopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.populator.I18nComponentTypePopulator
-
- All Implemented Interfaces:
Populator<ComposedTypeModel,ComponentTypeData>
public class I18nComponentTypePopulator extends java.lang.Object implements Populator<ComposedTypeModel,ComponentTypeData>
This populator will populateComponentTypeAttributeData.setI18nKey(String)using the following nomenclature: [prefix].[item type].[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
-
-
Constructor Summary
Constructors Constructor Description I18nComponentTypePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetPrefix()protected java.lang.StringgetSuffix()voidpopulate(ComposedTypeModel source, ComponentTypeData target)Populate the target instance with values from the source instance.voidsetPrefix(java.lang.String prefix)voidsetSuffix(java.lang.String suffix)
-
-
-
Method Detail
-
populate
public void populate(ComposedTypeModel source, ComponentTypeData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ComposedTypeModel,ComponentTypeData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getPrefix
protected java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
getSuffix
protected java.lang.String getSuffix()
-
setSuffix
public void setSuffix(java.lang.String suffix)
-
-