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.EClass rootEClass,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
|
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)
DomainModelReferenceConverter
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.public org.eclipse.emf.databinding.IEMFValueProperty convertToValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
DomainModelReferenceConverter
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
.public org.eclipse.emf.databinding.IEMFValueProperty convertToValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
DomainModelReferenceConverterEMF
convertToValueProperty
in interface DomainModelReferenceConverterEMF
rootEClass
- in this implementation, this parameter is ignored and might be null
domainModelReference
- The VDomainModelReference
that will be converted to a IValueProperty
editingDomain
- The EditingDomain
used by the created value property
. The
EditingDomain might be null
but in this case the value property will not support set
functionalityIValueProperty
, does not return null
.DatabindingFailedException
- if no value property could be created due to an invalid
VDomainModelReference
.public org.eclipse.emf.databinding.IEMFListProperty convertToListProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
DomainModelReferenceConverter
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
.public org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
DomainModelReferenceConverterEMF
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.Copyright © 2019. All rights reserved.