public class ExcelValueConverterRegistry
extends java.lang.Object
| Constructor and Description |
|---|
ExcelValueConverterRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<CONVERTER extends ExcelValueConverter> |
getConverter(ExcelAttribute excelAttribute,
ImportParameters importParameters,
java.lang.Class<CONVERTER>... exclude)
Finds converter which can handle given attribute descriptor.
|
java.util.List<ExcelValueConverter> |
getConverters()
Returns list of registered converters.
|
void |
setConverters(java.util.List<ExcelValueConverter> converters)
Sets list of converters for the registry.
|
public <CONVERTER extends ExcelValueConverter> java.util.Optional<ExcelValueConverter> getConverter(ExcelAttribute excelAttribute, ImportParameters importParameters, java.lang.Class<CONVERTER>... exclude)
excelAttribute - which represents selected attribute.exclude - list of converters class which shouldn't be taken into account while finding appropriate converter.ExcelValueConverter. If none converter can handle given attribute then
Optional.empty() will be returned.public java.util.List<ExcelValueConverter> getConverters()
public void setConverters(java.util.List<ExcelValueConverter> converters)
converters - for the registry.Copyright © 2018 SAP SE. All Rights Reserved.