public class DefaultExcelHeaderService extends java.lang.Object implements ExcelHeaderService
ExcelHeaderService| Constructor and Description |
|---|
DefaultExcelHeaderService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<Row> |
findTypeSystemRowForGivenHeader(Sheet metaInformationSheet,
java.lang.String typeCode,
java.lang.String header) |
java.util.Collection<java.lang.String> |
getHeaderDisplayNames(Sheet sheet)
Returns list of attribute display names, that is: the contents of the display name row:
ExcelTemplateConstants.Header.DISPLAY_NAME |
java.util.Collection<SelectedAttribute> |
getHeaders(Sheet metaInformationSheet,
Sheet typeSheet)
Returns list of selected attributes for given sheet, based on metainformation from type system sheet.
|
java.util.Collection<SelectedAttributeQualifier> |
getSelectedAttributesQualifiers(Sheet metaInformationSheet,
Sheet typeSheet)
Returns qualifiers of attributes which at selected in the typSheet
|
void |
insertAttributeHeader(Sheet sheet,
ExcelAttribute excelAttribute,
int columnIndex)
Inserts value to the sheet's header
|
void |
insertAttributesHeader(Sheet sheet,
java.util.Collection<? extends ExcelAttribute> excelAttributes)
A shortcut for
ExcelHeaderService.insertAttributeHeader(Sheet, ExcelAttribute, int) It is possible to inserts all values to
the header at once instead of invoking ExcelHeaderService.insertAttributeHeader(Sheet, ExcelAttribute, int) for every
attribute separately |
protected AttributeDescriptorModel |
loadAttributeDescriptor(Row row,
java.lang.String typeCode) |
protected java.lang.String |
loadIsoCode(Row row,
java.lang.String header) |
void |
setAttributeNameFormatter(AttributeNameFormatter<ExcelAttributeDescriptorAttribute> attributeNameFormatter) |
void |
setCollectionFormatter(CollectionFormatter collectionFormatter) |
void |
setDefaultValueIndex(ExcelTemplateConstants.Header defaultValueIndex) |
void |
setExcelCellService(ExcelCellService excelCellService) |
void |
setExcelSheetService(ExcelSheetService excelSheetService) |
void |
setExcelTranslatorRegistry(ExcelTranslatorRegistry excelTranslatorRegistry) |
void |
setHeaderRowIndex(ExcelTemplateConstants.Header headerRowIndex) |
void |
setReferencePatternRowIndex(ExcelTemplateConstants.Header referencePatternRowIndex) |
void |
setTypeService(TypeService typeService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeaderValueWithoutSpecialMarkspublic java.util.Collection<SelectedAttribute> getHeaders(Sheet metaInformationSheet, Sheet typeSheet)
ExcelHeaderServicegetHeaders in interface ExcelHeaderServicemetaInformationSheet - Sheet contains metaInformation about attributes for each type sheetstypeSheet - Sheet contains data for given sheetpublic java.util.Collection<java.lang.String> getHeaderDisplayNames(Sheet sheet)
ExcelHeaderServiceExcelTemplateConstants.Header.DISPLAY_NAMEgetHeaderDisplayNames in interface ExcelHeaderServicesheet - The Sheet from which the display names should be takenpublic java.util.Collection<SelectedAttributeQualifier> getSelectedAttributesQualifiers(Sheet metaInformationSheet, Sheet typeSheet)
ExcelHeaderServicegetSelectedAttributesQualifiers in interface ExcelHeaderServicemetaInformationSheet - Sheet contains metaInformation about attributes for each type sheetstypeSheet - Sheet contains data for given sheetpublic void insertAttributeHeader(Sheet sheet,
ExcelAttribute excelAttribute,
int columnIndex)
ExcelHeaderServiceinsertAttributeHeader in interface ExcelHeaderServicesheet - where the value will be insertedexcelAttribute - a pojo which allows to retrieve value to insertcolumnIndex - index of a column for inserted valuepublic void insertAttributesHeader(Sheet sheet,
java.util.Collection<? extends ExcelAttribute> excelAttributes)
ExcelHeaderServiceExcelHeaderService.insertAttributeHeader(Sheet, ExcelAttribute, int) It is possible to inserts all values to
the header at once instead of invoking ExcelHeaderService.insertAttributeHeader(Sheet, ExcelAttribute, int) for every
attribute separatelyinsertAttributesHeader in interface ExcelHeaderServicesheet - where the value will be insertedexcelAttributes - a collection of pojos which allows to retrieve value to insertprotected java.util.Optional<Row> findTypeSystemRowForGivenHeader(Sheet metaInformationSheet,
java.lang.String typeCode,
java.lang.String header)
protected java.lang.String loadIsoCode(Row row,
java.lang.String header)
protected AttributeDescriptorModel loadAttributeDescriptor(Row row, java.lang.String typeCode)
public void setAttributeNameFormatter(AttributeNameFormatter<ExcelAttributeDescriptorAttribute> attributeNameFormatter)
public void setTypeService(TypeService typeService)
public void setCollectionFormatter(CollectionFormatter collectionFormatter)
public void setExcelSheetService(ExcelSheetService excelSheetService)
public void setExcelCellService(ExcelCellService excelCellService)
public void setExcelTranslatorRegistry(ExcelTranslatorRegistry excelTranslatorRegistry)
public void setHeaderRowIndex(ExcelTemplateConstants.Header headerRowIndex)
public void setReferencePatternRowIndex(ExcelTemplateConstants.Header referencePatternRowIndex)
public void setDefaultValueIndex(ExcelTemplateConstants.Header defaultValueIndex)
Copyright © 2018 SAP SE. All Rights Reserved.