public class DefaultExcelWorkbookService extends java.lang.Object implements ExcelWorkbookService
ExcelWorkbookService| Constructor and Description |
|---|
DefaultExcelWorkbookService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Workbook workbook,
java.lang.String key,
java.lang.String value)
Adds property to given workbook
|
Workbook |
createWorkbook(java.io.InputStream is)
Creates workbook object based on inputStream of excel file.
|
Sheet |
getMetaInformationSheet(Workbook workbook)
Returns sheet which contains metadata about type system
|
protected java.util.Optional<POIXMLProperties.CustomProperties> |
getProperties(Workbook workbook) |
java.util.Optional<java.lang.String> |
getProperty(Workbook workbook,
java.lang.String key)
Retrieves property from given workbook
|
java.util.Collection<CTProperty> |
getUnderlyingProperties(Workbook workbook)
Retrieves underlying properties
|
void |
setMetaInformationSheet(ExcelTemplateConstants.UtilitySheet metaInformationSheet) |
public Sheet getMetaInformationSheet(Workbook workbook)
ExcelWorkbookServicegetMetaInformationSheet in interface ExcelWorkbookServiceworkbook - Workbook object which represents excel fileSheet which contains information about type systempublic Workbook createWorkbook(java.io.InputStream is)
ExcelWorkbookServicecreateWorkbook in interface ExcelWorkbookServiceis - Input stream of excel fileWorkbook object which represents excel filepublic void addProperty(Workbook workbook,
java.lang.String key,
java.lang.String value)
ExcelWorkbookServiceaddProperty in interface ExcelWorkbookServiceworkbook - workbook which should be decorated by propertykey - key of propertyvalue - value of propertypublic java.util.Optional<java.lang.String> getProperty(Workbook workbook,
java.lang.String key)
ExcelWorkbookServicegetProperty in interface ExcelWorkbookServiceworkbook - the source of the propertieskey - key of the propertypublic java.util.Collection<CTProperty> getUnderlyingProperties(Workbook workbook)
ExcelWorkbookServicegetUnderlyingProperties in interface ExcelWorkbookServiceworkbook - the source of the propertiesprotected java.util.Optional<POIXMLProperties.CustomProperties> getProperties(Workbook workbook)
public void setMetaInformationSheet(ExcelTemplateConstants.UtilitySheet metaInformationSheet)
Copyright © 2018 SAP SE. All Rights Reserved.