public class ExcelTranslatorRegistry
extends java.lang.Object
| Constructor and Description |
|---|
ExcelTranslatorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(AttributeDescriptorModel attributeDescriptor)
Indicates whether there is at least one translator which can handle given attribute descriptor.
|
java.util.Optional<ExcelValueTranslator> |
getTranslator(AttributeDescriptorModel attributeDescriptor)
Finds translator which can handle given attribute descriptor.
|
java.util.List<ExcelValueTranslator> |
getTranslators()
Returns list of registered translators.
|
void |
init()
Post construct method which sorts translators by its order.
|
void |
setTranslators(java.util.List<ExcelValueTranslator> translators)
Sets list of translators for the registry.
|
public java.util.Optional<ExcelValueTranslator> getTranslator(AttributeDescriptorModel attributeDescriptor)
attributeDescriptor - which represents selected attribute.ExcelValueTranslator. If none translator can handle given attribute descriptor then
Optional.empty() will be returned.@PostConstruct public void init()
public boolean canHandle(AttributeDescriptorModel attributeDescriptor)
attributeDescriptor - which represents selected attribute.public java.util.List<ExcelValueTranslator> getTranslators()
public void setTranslators(java.util.List<ExcelValueTranslator> translators)
translators - for the registry.Copyright © 2018 SAP SE. All Rights Reserved.