Class DefaultExcelAttributeContext<ATTRIBUTE extends ExcelAttribute>
java.lang.Object
com.hybris.backoffice.excel.template.populator.DefaultExcelAttributeContext<ATTRIBUTE>
- Type Parameters:
ATTRIBUTE- mandatory attribute of context
- All Implemented Interfaces:
ExcelAttributeContext<ATTRIBUTE>
public class DefaultExcelAttributeContext<ATTRIBUTE extends ExcelAttribute>
extends Object
implements ExcelAttributeContext<ATTRIBUTE>
Default implementation of
ExcelAttributeContext which can be used excel population process.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<TYPE> TYPEgetAttribute(String name, Class<TYPE> type) Retrieves desired attribute from contextgetExcelAttribute(Class<ATTRIBUTE> type) Retrieves ExcelAttributestatic <T extends ExcelAttribute>
ExcelAttributeContext<T>ofExcelAttribute(T excelAttribute) static <T extends ExcelAttribute>
ExcelAttributeContext<T>
-
Field Details
-
EXCEL_ATTRIBUTE
- See Also:
-
-
Method Details
-
ofExcelAttribute
public static <T extends ExcelAttribute> ExcelAttributeContext<T> ofExcelAttribute(T excelAttribute) -
ofMap
public static <T extends ExcelAttribute> ExcelAttributeContext<T> ofMap(T excelAttribute, Map<String, Object> map) -
getAttribute
Description copied from interface:ExcelAttributeContextRetrieves desired attribute from context- Specified by:
getAttributein interfaceExcelAttributeContext<ATTRIBUTE extends ExcelAttribute>- Type Parameters:
TYPE- type of desired attribute- Parameters:
name- name of the key of desired attribute- Returns:
- attribute
-
getExcelAttribute
Description copied from interface:ExcelAttributeContextRetrieves ExcelAttribute- Specified by:
getExcelAttributein interfaceExcelAttributeContext<ATTRIBUTE extends ExcelAttribute>- Returns:
- ExcelAttribute which is a mandatory attribute in the context
-