public interface EMFFormsSpreadsheetValueConverter
Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
Constant defining that this converter can not be used to convert the value.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCellValue(org.apache.poi.ss.usermodel.Cell cell,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
Read the value of the
Cell using the EStructuralFeature as meta information about the value. |
double |
isApplicable(org.eclipse.emf.ecore.EObject domainObject,
VDomainModelReference dmr)
Returns whether this converter is applicable to convert the value for the given
domain model reference . |
void |
setCellValue(org.apache.poi.ss.usermodel.Cell cell,
Object value,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
ViewModelContext viewModelContext)
Write the value to the
Cell using the EStructuralFeature as meta information about the value. |
static final double NOT_APPLICABLE
double isApplicable(org.eclipse.emf.ecore.EObject domainObject, VDomainModelReference dmr)
domain model reference
. The converter
with the highest priority will
be used to convert this value. If this converter cannot convert the value this method should indicate this by
returning NOT_APPLICABLE
.domainObject
- the domain objectdmr
- the domain model reference for which the value is to be convertedNOT_APPLICABLE
void setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ViewModelContext viewModelContext) throws EMFFormsConverterException
Cell
using the EStructuralFeature
as meta information about the value.cell
- The Cell to write tovalue
- The value to writeeStructuralFeature
- The EStructuralFeature
describing the meta information of the valueviewModelContext
- The ViewModelContext
to useEMFFormsConverterException
- Whenever the eStructuralFeature and the value don't matchObject getCellValue(org.apache.poi.ss.usermodel.Cell cell, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature) throws EMFFormsConverterException
Cell
using the EStructuralFeature
as meta information about the value.cell
- The Cell to read fromeStructuralFeature
- The EStructuralFeature
describing the meta information of the valueEMFFormsConverterException
- Whenever the eStructuralFeature and the cell value don't matchCopyright © 2018. All rights reserved.