Class DisplayNameAttributeNameFormatter
java.lang.Object
com.hybris.backoffice.excel.template.DisplayNameAttributeNameFormatter
- All Implemented Interfaces:
AttributeNameFormatter<ExcelAttributeDescriptorAttribute>
public class DisplayNameAttributeNameFormatter
extends Object
implements AttributeNameFormatter<ExcelAttributeDescriptorAttribute>
Formats
ExcelAttribute to value displayed in excel sheet's header row
(0 index)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(ExcelAttributeContext<ExcelAttributeDescriptorAttribute> excelAttributeContext) Returns displayed header name based on attribute's metadataprotected StringgetAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor) protected StringgetAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor, String isoCode) protected StringgetAttributeDisplayName(ExcelAttributeDescriptorAttribute excelAttributeDescriptorAttribute, String workbookIsoCode) voidvoidsetCommonI18NService(CommonI18NService commonI18NService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DisplayNameAttributeNameFormatter
public DisplayNameAttributeNameFormatter()
-
-
Method Details
-
format
public String format(@Nonnull ExcelAttributeContext<ExcelAttributeDescriptorAttribute> excelAttributeContext) Returns displayed header name based on attribute's metadata- Specified by:
formatin interfaceAttributeNameFormatter<ExcelAttributeDescriptorAttribute>- Parameters:
excelAttributeContext- context which contains excelAttribute- Returns:
- displayed header name based
-
getAttributeDisplayName
protected String getAttributeDisplayName(ExcelAttributeDescriptorAttribute excelAttributeDescriptorAttribute, String workbookIsoCode) -
getAttributeDescriptorName
-
getAttributeDescriptorName
protected String getAttributeDescriptorName(AttributeDescriptorModel attributeDescriptor, String isoCode) -
setCommonI18NService
-
setTypeService
-
setAppenders
-