public class ExcelEnumValidator extends java.lang.Object implements ExcelValidator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VALIDATION_INCORRECTTYPE_ENUM_MESSAGE_KEY |
static java.lang.String |
VALIDATION_INCORRECTTYPE_ENUMVALUE_MESSAGE_KEY |
CTX_MEDIA_CONTENT_ENTRIES| Constructor and Description |
|---|
ExcelEnumValidator() |
| 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.
|
EnumerationService |
getEnumerationService() |
void |
setEnumerationService(EnumerationService enumerationService) |
ExcelValidationResult |
validate(ImportParameters importParameters,
AttributeDescriptorModel attributeDescriptor,
java.util.Map<java.lang.String,java.lang.Object> context)
Validates given cell and returns validation result.
|
public static final java.lang.String VALIDATION_INCORRECTTYPE_ENUMVALUE_MESSAGE_KEY
public static final java.lang.String VALIDATION_INCORRECTTYPE_ENUM_MESSAGE_KEY
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.Object> context)
ExcelValidatorExcelValidationResult.SUCCESS should be returned.validate in interface ExcelValidatorcontext - - map which can be used as a cache. The map is shared between all request for given excel sheet.ExcelValidationResultpublic boolean canHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor)
ExcelValidatorcanHandle in interface ExcelValidatorpublic EnumerationService getEnumerationService()
public void setEnumerationService(EnumerationService enumerationService)
Copyright © 2018 SAP SE. All Rights Reserved.