public interface ExcelValidator
canHandle(ImportParameters, AttributeDescriptorModel) is invoked. If a validator can handle
the cell then validate(ImportParameters, AttributeDescriptorModel, Map) is invoked and list of
validation result is collected.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CTX_MEDIA_CONTENT_ENTRIES
Set of entries names inside media content zip attached to excel file
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(ImportParameters importParameters,
AttributeDescriptorModel attributeDescriptor)
Indicates whether given validator can handle a cell based on attribute descriptor and import parameters.
|
ExcelValidationResult |
validate(ImportParameters importParameters,
AttributeDescriptorModel attributeDescriptor,
java.util.Map<java.lang.String,java.lang.Object> context)
Validates given cell and returns validation result.
|
static final java.lang.String CTX_MEDIA_CONTENT_ENTRIES
ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.Object> context)
ExcelValidationResult.SUCCESS should be returned.importParameters - attributeDescriptor - context - - map which can be used as a cache. The map is shared between all request for given excel sheet.ExcelValidationResultboolean canHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor)
importParameters - attributeDescriptor - Copyright © 2018 SAP SE. All Rights Reserved.