public class MappingDomainModelReferenceConverter extends Object implements DomainModelReferenceConverterEMF
DomainModelReferenceConverterEMF
that converts VMappingDomainModelReferences
.NOT_APPLICABLE
Constructor and Description |
---|
MappingDomainModelReferenceConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
This method is called by the OSGI framework when this
DomainModelReferenceConverterEMF is activated. |
org.eclipse.emf.databinding.IEMFListProperty |
convertToListProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Converts a
VDomainModelReference to an IListProperty . |
org.eclipse.emf.databinding.IEMFValueProperty |
convertToValueProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Converts a
VDomainModelReference to a IValueProperty . |
protected void |
deactivate(org.osgi.framework.BundleContext bundleContext)
This method is called by the OSGI framework when this
DomainModelReferenceConverterEMF is deactivated. |
org.eclipse.emf.ecore.EStructuralFeature.Setting |
getSetting(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Retrieve the Setting which is described by the provided
VDomainModelReference and the provided
EObject . |
double |
isApplicable(VDomainModelReference domainModelReference)
Checks whether the given
VDomainModelReference can be converted by this
DomainModelReferenceConverter to a IValueProperty . |
public MappingDomainModelReferenceConverter()
protected final void activate(org.osgi.framework.BundleContext bundleContext)
DomainModelReferenceConverterEMF
is activated. It
retrieves the EMF Forms databinding service
.bundleContext
- The BundleContext
of this classes bundle.protected final void deactivate(org.osgi.framework.BundleContext bundleContext)
DomainModelReferenceConverterEMF
is deactivated.
It frees the EMF Forms databinding service
.bundleContext
- The BundleContext
of this classes bundle.public double isApplicable(VDomainModelReference domainModelReference)
VDomainModelReference
can be converted by this
DomainModelReferenceConverter
to a IValueProperty
. The return value is the priority of this
converter. The higher the priority, the better suits the converter the given VDomainModelReference
.isApplicable
in interface DomainModelReferenceConverter
domainModelReference
- The VDomainModelReference
whose priority is wanted.VDomainModelReference
; negative infinity if this converter is not
applicable.DomainModelReferenceConverter.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference)
public org.eclipse.emf.databinding.IEMFValueProperty convertToValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
VDomainModelReference
to a IValueProperty
.convertToValueProperty
in interface DomainModelReferenceConverter
convertToValueProperty
in interface DomainModelReferenceConverterEMF
domainModelReference
- The VDomainModelReference
that will be converted to a IValueProperty
object
- The root object of the rendered formIValueProperty
, does not return null
.DatabindingFailedException
- if no value property could be created due to an invalid
VDomainModelReference
.DomainModelReferenceConverter.convertToValueProperty(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference,EObject)
public org.eclipse.emf.databinding.IEMFListProperty convertToListProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
VDomainModelReference
to an IListProperty
.convertToListProperty
in interface DomainModelReferenceConverter
convertToListProperty
in interface DomainModelReferenceConverterEMF
domainModelReference
- The VDomainModelReference
that will be converted to an IListProperty
object
- The root object of the rendered formIListProperty
, does not return null
.DatabindingFailedException
- if no value property could be created due to an invalid
VDomainModelReference
.DomainModelReferenceConverter.convertToListProperty(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference,EObject)
public org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
VDomainModelReference
and the provided
EObject
.getSetting
in interface DomainModelReferenceConverterEMF
domainModelReference
- The VDomainModelReference
to use to retrieve the settingobject
- The EObject
to use to retrieve the settingVDomainModelReference
DatabindingFailedException
- if the databinding could not be executed successfully.DomainModelReferenceConverterEMF.getSetting(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference,
org.eclipse.emf.ecore.EObject)
Copyright © 2016. All rights reserved.