public interface ExcelHeaderService
ExcelTemplateConstants.Header.DISPLAY_NAME,
ExcelTemplateConstants.Header.REFERENCE_PATTERN,
ExcelTemplateConstants.Header.DEFAULT_VALUE| Modifier and Type | Method and Description |
|---|---|
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.
|
default java.lang.String |
getHeaderValueWithoutSpecialMarks(java.lang.String headerValue)
Removes special characters, defined by
ExcelTemplateConstants.SpecialMark, from given input |
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
insertAttributeHeader(Sheet, ExcelAttribute, int) It is possible to inserts all values to
the header at once instead of invoking insertAttributeHeader(Sheet, ExcelAttribute, int) for every
attribute separately |
java.util.Collection<SelectedAttribute> getHeaders(Sheet metaInformationSheet, Sheet typeSheet)
metaInformationSheet - Sheet contains metaInformation about attributes for each type sheetstypeSheet - Sheet contains data for given sheetjava.util.Collection<java.lang.String> getHeaderDisplayNames(Sheet sheet)
ExcelTemplateConstants.Header.DISPLAY_NAMEsheet - The Sheet from which the display names should be takenjava.util.Collection<SelectedAttributeQualifier> getSelectedAttributesQualifiers(Sheet metaInformationSheet, Sheet typeSheet)
metaInformationSheet - Sheet contains metaInformation about attributes for each type sheetstypeSheet - Sheet contains data for given sheetvoid insertAttributeHeader(Sheet sheet,
ExcelAttribute excelAttribute,
int columnIndex)
sheet - where the value will be insertedexcelAttribute - a pojo which allows to retrieve value to insertcolumnIndex - index of a column for inserted valuevoid insertAttributesHeader(Sheet sheet,
java.util.Collection<? extends ExcelAttribute> excelAttributes)
insertAttributeHeader(Sheet, ExcelAttribute, int) It is possible to inserts all values to
the header at once instead of invoking insertAttributeHeader(Sheet, ExcelAttribute, int) for every
attribute separatelysheet - where the value will be insertedexcelAttributes - a collection of pojos which allows to retrieve value to insertdefault java.lang.String getHeaderValueWithoutSpecialMarks(java.lang.String headerValue)
ExcelTemplateConstants.SpecialMark, from given inputheaderValue - inputCopyright © 2018 SAP SE. All Rights Reserved.