Class ImpexForType

java.lang.Object
com.hybris.backoffice.excel.data.ImpexForType
All Implemented Interfaces:
Serializable

public class ImpexForType extends Object implements Serializable
Represents impex for given type code. The object consists of type code and table with impex headers and data rows.
See Also:
  • Constructor Details

    • ImpexForType

      public ImpexForType(String typeCode)
  • Method Details

    • putValue

      public void putValue(Integer rowNumber, ImpexHeaderValue key, Object value)
      Puts value to impex table. A key for row is equals to row index. A key for column is equals to ImpexHeaderValue. If value is null then empty string is put to the table.
      Parameters:
      rowNumber - of impex table where value should be put.
      key - ImpexHeaderValue column key where value should be put.
      value - Object value which should be put into table. If value is null then empty string is put.
    • addRow

      public void addRow(Map<ImpexHeaderValue,Object> row)
      Adds row with row number equal to max(rowNumber) + 1 putValue(Integer, ImpexHeaderValue, Object)
      Parameters:
      row - map of header and value.
    • getRow

      public ImpexRow getRow(Integer rowIndex)
      Finds impex row by rowIndex
      Parameters:
      rowIndex -
      Returns:
      ImpexRow
    • getTypeCode

      public String getTypeCode()
      Returns:
      type code for the Impex.
    • setTypeCode

      public void setTypeCode(String typeCode)
      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

      public com.google.common.collect.Table<Integer,ImpexHeaderValue,Object> getImpexTable()
      Returns:
      table represents impex structure.