public class FeaturePathDomainModelReferenceConverter extends Object implements DomainModelReferenceConverterEMF
DomainModelReferenceConverterEMF
that converts VFeaturePathDomainModelReference
s.NOT_APPLICABLE
Constructor and Description |
---|
FeaturePathDomainModelReferenceConverter() |
Modifier and Type | Method and Description |
---|---|
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 . |
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 FeaturePathDomainModelReferenceConverter()
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
domainModelReference
- The VDomainModelReference
that will be converted to a IValueProperty
rootEClass
- The root EClass
of the given VDomainModelReference
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.