public class EMFFormsSpreadsheetMultiReferenceConverter extends Object implements EMFFormsSpreadsheetValueConverter
Converter
for multi references
.NOT_APPLICABLE
Constructor and Description |
---|
EMFFormsSpreadsheetMultiReferenceConverter() |
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 values,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
ViewModelContext viewModelContext)
Write the value to the
Cell using the EStructuralFeature as meta information about the value. |
void |
setDatabinding(EMFFormsDatabindingEMF databinding)
Sets the databinding service.
|
void |
setReportService(ReportService reportService)
Sets the report service.
|
public EMFFormsSpreadsheetMultiReferenceConverter()
public void setDatabinding(EMFFormsDatabindingEMF databinding)
databinding
- the servicepublic void setReportService(ReportService reportService)
reportService
- the servicepublic double isApplicable(org.eclipse.emf.ecore.EObject domainObject, VDomainModelReference dmr)
EMFFormsSpreadsheetValueConverter
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 EMFFormsSpreadsheetValueConverter.NOT_APPLICABLE
.isApplicable
in interface EMFFormsSpreadsheetValueConverter
domainObject
- the domain objectdmr
- the domain model reference for which the value is to be convertedEMFFormsSpreadsheetValueConverter.NOT_APPLICABLE
public void setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object values, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ViewModelContext viewModelContext) throws EMFFormsConverterException
EMFFormsSpreadsheetValueConverter
Cell
using the EStructuralFeature
as meta information about the value.setCellValue
in interface EMFFormsSpreadsheetValueConverter
cell
- The Cell to write tovalues
- 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 matchpublic Object 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.getCellValue
in interface EMFFormsSpreadsheetValueConverter
cell
- The Cell to read fromeStructuralFeature
- The EStructuralFeature
describing the meta information of the valueEMFFormsConverterException
- Whenever the eStructuralFeature and the cell value don't matchEMFFormsSpreadsheetValueConverter.getCellValue(org.apache.poi.ss.usermodel.Cell,
org.eclipse.emf.ecore.EStructuralFeature)
Copyright © 2018. All rights reserved.