Class CustomDMRMappingProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.custom.model.impl.CustomDMRMappingProvider
-
- All Implemented Interfaces:
EMFFormsMappingProvider
public class CustomDMRMappingProvider extends java.lang.Object implements EMFFormsMappingProvider
An EMFFormsMappingProvider forVCustomDomainModelReference
.- Since:
- 1.9
- Author:
- Eugen Neufeld
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.core.services.mappingprovider.EMFFormsMappingProvider
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description CustomDMRMappingProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets activated.protected void
deactivate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets deactivated.java.util.Set<UniqueSetting>
getMappingFor(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainObject)
Returns the mapping ofUniqueSettings
to their sets ofVDomainModelReference
for a givenVDomainModelReference
anddomain object
.double
isApplicable(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainObject)
Returns a double indicating if and how well thisEMFFormsMappingProvider
is applicable for the givenVDomainModelReference
anddomain object
.protected void
setReportService(ReportService reportService)
Sets theReportService
.
-
-
-
Method Detail
-
getMappingFor
public java.util.Set<UniqueSetting> getMappingFor(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainObject)
Returns the mapping ofUniqueSettings
to their sets ofVDomainModelReference
for a givenVDomainModelReference
anddomain object
.- Specified by:
getMappingFor
in interfaceEMFFormsMappingProvider
- Parameters:
domainModelReference
- TheVDomainModelReference
domainObject
- Thedomain object
- Returns:
- The mapping from the
UniqueSettings
to their sets ofVDomainModelReference
- See Also:
EMFFormsMappingProvider.getMappingFor(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
-
isApplicable
public double isApplicable(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainObject)
Returns a double indicating if and how well thisEMFFormsMappingProvider
is applicable for the givenVDomainModelReference
anddomain object
.- Specified by:
isApplicable
in interfaceEMFFormsMappingProvider
- Parameters:
domainModelReference
- The givenVDomainModelReference
domainObject
- Thedomain object
- Returns:
- The floating point value indicating the applicability
- See Also:
EMFFormsMappingProvider.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets activated.- Parameters:
bundleContext
- TheBundleContext
-
deactivate
protected void deactivate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets deactivated.- Parameters:
bundleContext
- TheBundleContext
-
setReportService
protected void setReportService(ReportService reportService)
Sets theReportService
.- Parameters:
reportService
- TheReportService
-
-