Package com.hybris.backoffice.excel.data
Class Impex
- java.lang.Object
-
- com.hybris.backoffice.excel.data.Impex
-
- All Implemented Interfaces:
java.io.Serializable
public class Impex extends java.lang.Object implements java.io.SerializableRepresents impex for all typeCodes. In order to generate impex script based on this object please seeImpexConverter.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME
-
Constructor Summary
Constructors Constructor Description Impex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ImpexForTypecreateNewImpex(java.lang.String typeCode)Creates a new Impex type for given type code.ImpexForTypefindUpdates(java.lang.String typeCode)FindsImpexForTypefor given type code.java.util.List<ImpexForType>getImpexes()voidmergeImpex(Impex subImpex)Merges subImpex into mainImpex.voidmergeImpex(Impex subImpex, java.lang.String typeCode, java.lang.Integer rowIndex)Merges subImpex to current main impex.protected booleanusesDocumentRef(ImpexForType impexForType)
-
-
-
Field Detail
-
EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME
public static final java.lang.String EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
findUpdates
public ImpexForType findUpdates(java.lang.String typeCode)
FindsImpexForTypefor given type code. If not found then a new instance ofImpexForTypewill be created, automatically added to list of impexes and returned.- Parameters:
typeCode-- Returns:
-
createNewImpex
protected ImpexForType createNewImpex(java.lang.String typeCode)
Creates a new Impex type for given type code.- Parameters:
typeCode-- Returns:
- empty
ImpexForTypefor given type code
-
getImpexes
public java.util.List<ImpexForType> getImpexes()
-
usesDocumentRef
protected boolean usesDocumentRef(ImpexForType impexForType)
-
mergeImpex
public void mergeImpex(Impex subImpex, java.lang.String typeCode, java.lang.Integer rowIndex)
Merges subImpex to current main impex.- Parameters:
subImpex-Impexcontains impex's values for current sheet's celltypeCode- for current excel's sheet. It's required in order to recognize whetherImpexForTypecontains single value for current typeCode or dependent impex for another type.rowIndex- of currently processing row
-
-