INPUT - type of the input valueATTRIBUTE - type of the output. It has to extend ExcelAttributepublic class ChainMapper<INPUT,ATTRIBUTE extends ExcelAttribute> extends java.lang.Object implements ExcelMapper<INPUT,ATTRIBUTE>
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 and Description |
|---|
ChainMapper() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ATTRIBUTE> |
apply(INPUT input) |
protected boolean |
filter1(AttributeDescriptorModel attributeDescriptor) |
protected boolean |
filter2(ATTRIBUTE excelAttribute) |
void |
setFilters1(java.util.Collection<ExcelFilter<AttributeDescriptorModel>> filters1) |
void |
setFilters2(java.util.Collection<ExcelFilter<ATTRIBUTE>> filters2) |
void |
setMapper1(ExcelMapper<INPUT,AttributeDescriptorModel> mapper1) |
void |
setMapper2(ExcelMapper<java.util.Collection<AttributeDescriptorModel>,ATTRIBUTE> mapper2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterpublic java.util.Collection<ATTRIBUTE> apply(INPUT input)
apply in interface java.util.function.Function<INPUT,java.util.Collection<ATTRIBUTE extends ExcelAttribute>>protected boolean filter1(AttributeDescriptorModel attributeDescriptor)
protected boolean filter2(ATTRIBUTE excelAttribute)
public void setMapper1(ExcelMapper<INPUT,AttributeDescriptorModel> mapper1)
public void setMapper2(ExcelMapper<java.util.Collection<AttributeDescriptorModel>,ATTRIBUTE> mapper2)
public void setFilters1(java.util.Collection<ExcelFilter<AttributeDescriptorModel>> filters1)
public void setFilters2(java.util.Collection<ExcelFilter<ATTRIBUTE>> filters2)
Copyright © 2018 SAP SE. All Rights Reserved.