Class ChainMapper<INPUT,ATTRIBUTE extends ExcelAttribute>
java.lang.Object
com.hybris.backoffice.excel.template.mapper.ChainMapper<INPUT,ATTRIBUTE>
- Type Parameters:
INPUT- type of the input valueATTRIBUTE- type of the output. It has to extendExcelAttribute
- All Implemented Interfaces:
ExcelMapper<INPUT,,ATTRIBUTE> Function<INPUT,Collection<ATTRIBUTE>>
public class ChainMapper<INPUT,ATTRIBUTE extends ExcelAttribute>
extends Object
implements ExcelMapper<INPUT,ATTRIBUTE>
Allows to chain two
ExcelMappers. The result of the first ExcelMapper is then mapped to result of
ExcelMapper. You can specify two collection of ExcelFilters - one for first mapping operation and
another for second mapping operation. Use setFilters1(Collection) to filter result of mapper1 and
setFilters2(Collection) to filter result of mapper2.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfilter1(AttributeDescriptorModel attributeDescriptor) protected booleanvoidsetFilters1(Collection<ExcelFilter<AttributeDescriptorModel>> filters1) voidsetFilters2(Collection<ExcelFilter<ATTRIBUTE>> filters2) voidsetMapper1(ExcelMapper<INPUT, AttributeDescriptorModel> mapper1) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.backoffice.excel.template.mapper.ExcelMapper
filter
-
Constructor Details
-
ChainMapper
public ChainMapper()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<INPUT,ATTRIBUTE extends ExcelAttribute>
-
filter1
-
filter2
-
setMapper1
-
setMapper2
-
setFilters1
-
setFilters2
-