Package com.hybris.backoffice.excel.data
Class ImpexForType
java.lang.Object
com.hybris.backoffice.excel.data.ImpexForType
- All Implemented Interfaces:
Serializable
Represents impex for given type code. The object consists of type code and table with impex headers and data rows.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRow(Map<ImpexHeaderValue, Object> row) Adds row with row number equal to max(rowNumber) + 1putValue(Integer, ImpexHeaderValue, Object)com.google.common.collect.Table<Integer,ImpexHeaderValue, Object> intgetOrder()Indicates order of impex processing.Finds impex row by rowIndexvoidputValue(Integer rowNumber, ImpexHeaderValue key, Object value) Puts value to impex table.voidsetOrder(int order) Sets order of impex processing.voidsetTypeCode(String typeCode) Sets type code for the Impex
-
Constructor Details
-
ImpexForType
-
-
Method Details
-
putValue
Puts value to impex table. A key for row is equals to row index. A key for column is equals toImpexHeaderValue. If value is null then empty string is put to the table.- Parameters:
rowNumber- of impex table where value should be put.key-ImpexHeaderValuecolumn key where value should be put.value-Objectvalue which should be put into table. If value is null then empty string is put.
-
addRow
Adds row with row number equal to max(rowNumber) + 1putValue(Integer, ImpexHeaderValue, Object)- Parameters:
row- map of header and value.
-
getRow
Finds impex row by rowIndex- Parameters:
rowIndex-- Returns:
- ImpexRow
-
getTypeCode
- Returns:
- type code for the Impex.
-
setTypeCode
Sets type code for the Impex- Parameters:
typeCode-
-
getOrder
public int getOrder()Indicates order of impex processing.- Returns:
- order
-
setOrder
public void setOrder(int order) Sets order of impex processing.- Parameters:
order-
-
getImpexTable
- Returns:
- table represents impex structure.
-