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 java.lang.Object implements ExcelAttributeContext<ATTRIBUTE>
Default implementation ofExcelAttributeContextwhich can be used excel population process.- See Also:
ExcelCellPopulator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXCEL_ATTRIBUTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <TYPE> TYPEgetAttribute(java.lang.String name, java.lang.Class<TYPE> type)Retrieves desired attribute from contextATTRIBUTEgetExcelAttribute(java.lang.Class<ATTRIBUTE> type)Retrieves ExcelAttributestatic <T extends ExcelAttribute>
ExcelAttributeContext<T>ofExcelAttribute(T excelAttribute)static <T extends ExcelAttribute>
ExcelAttributeContext<T>ofMap(T excelAttribute, java.util.Map<java.lang.String,java.lang.Object> map)
-
-
-
Field Detail
-
EXCEL_ATTRIBUTE
public static final java.lang.String EXCEL_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
ofExcelAttribute
public static <T extends ExcelAttribute> ExcelAttributeContext<T> ofExcelAttribute(T excelAttribute)
-
ofMap
public static <T extends ExcelAttribute> ExcelAttributeContext<T> ofMap(T excelAttribute, java.util.Map<java.lang.String,java.lang.Object> map)
-
getAttribute
public <TYPE> TYPE getAttribute(@Nonnull java.lang.String name, @Nonnull java.lang.Class<TYPE> type)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
public ATTRIBUTE getExcelAttribute(@Nonnull java.lang.Class<ATTRIBUTE> type)
Description copied from interface:ExcelAttributeContextRetrieves ExcelAttribute- Specified by:
getExcelAttributein interfaceExcelAttributeContext<ATTRIBUTE extends ExcelAttribute>- Returns:
- ExcelAttribute which is a mandatory attribute in the context
-
-