T - - class which should be handled by translatorpublic abstract class AbstractValidationAwareTranslator<T> extends java.lang.Object implements ExcelValueTranslator<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ExcelValidator> |
validators |
| Constructor and Description |
|---|
AbstractValidationAwareTranslator() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExcelValidator> |
getValidators()
Returns list of validators for current translator.
|
void |
setValidators(java.util.List<ExcelValidator> validators)
Sets list of validators for current translator.
|
ExcelValidationResult |
validate(ImportParameters importParameters,
AttributeDescriptorModel attributeDescriptor,
java.util.Map<java.lang.String,java.lang.Object> context)
Validates single cell based on parsed importParameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandle, exportData, exportData, importData, referenceFormatprotected java.util.List<ExcelValidator> validators
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.Object> context)
ExcelValueTranslatorImportParameters.parameters. Otherwise the value of cell can be obtained by
ImportParameters.cellValue.validate in interface ExcelValueTranslator<T>importParameters - - contains information about parsed cell value (for reference format)
ImportParameters.parameters and original cell value ImportParameters.cellValueattributeDescriptor - - contains information about selected attribute for current cellcontext - - shared context which can be used as a cachepublic java.util.List<ExcelValidator> getValidators()
public void setValidators(java.util.List<ExcelValidator> validators)
validators - list of validators for current translator.Copyright © 2018 SAP SE. All Rights Reserved.