public class KeyAttributeDomainModelReferenceConverter extends Object implements DomainModelReferenceConverterEMF
DomainModelReferenceConverterEMF that converts VKeyAttributeDomainModelReferences.NOT_APPLICABLE| Constructor and Description |
|---|
KeyAttributeDomainModelReferenceConverter() |
| 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 KeyAttributeDomainModelReferenceConverter()
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 org.eclipse.emf.databinding.IEMFValueProperty convertToValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
DomainModelReferenceConverterVDomainModelReference to a IValueProperty.convertToValueProperty in interface DomainModelReferenceConverterconvertToValueProperty in interface DomainModelReferenceConverterEMFdomainModelReference - The VDomainModelReference that will be converted to a IValuePropertyobject - 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
DomainModelReferenceConverterEMFconvertToValueProperty in interface DomainModelReferenceConverterEMFrootEClass - in this implementation, this parameter is ignored and might be nulldomainModelReference - The VDomainModelReference that will be converted to a IValuePropertyeditingDomain - 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
DomainModelReferenceConverterVDomainModelReference to an IListProperty.convertToListProperty in interface DomainModelReferenceConverterconvertToListProperty in interface DomainModelReferenceConverterEMFdomainModelReference - The VDomainModelReference that will be converted to an IListPropertyobject - 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
DomainModelReferenceConverterEMFVDomainModelReference and the provided
EObject.getSetting in interface DomainModelReferenceConverterEMFdomainModelReference - The VDomainModelReference to use to retrieve the settingobject - The EObject to use to retrieve the settingVDomainModelReferenceDatabindingFailedException - if the databinding could not be executed successfully.public double isApplicable(VDomainModelReference domainModelReference)
DomainModelReferenceConverterVDomainModelReference 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 DomainModelReferenceConverterdomainModelReference - The VDomainModelReference whose priority is wanted.VDomainModelReference; negative infinity if this converter is not
applicable.Copyright © 2019. All rights reserved.