Interface DomainModelReferenceConverter
-
- All Known Subinterfaces:
DomainModelReferenceConverterEMF
- All Known Implementing Classes:
CustomDMRConverter
,FeaturePathDomainModelReferenceConverter
,IndexDomainModelReferenceConverter
,KeyAttributeDomainModelReferenceConverter
,MappingDomainModelReferenceConverter
,TableDMRConverter
public interface DomainModelReferenceConverter
Converts aVDomainModelReference
to aIValueProperty
.- Author:
- Lucas Koehler
-
-
Field Summary
Fields Modifier and Type Field Description static double
NOT_APPLICABLE
The constant defining the priority that aDomainModelReferenceConverter
is not for aVDomainModelReference
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.core.databinding.property.list.IListProperty
convertToListProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object)
Converts aVDomainModelReference
to anIListProperty
.org.eclipse.core.databinding.property.value.IValueProperty
convertToValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object)
Converts aVDomainModelReference
to aIValueProperty
.double
isApplicable(VDomainModelReference domainModelReference)
Checks whether the givenVDomainModelReference
can be converted by thisDomainModelReferenceConverter
to aIValueProperty
.
-
-
-
Field Detail
-
NOT_APPLICABLE
static final double NOT_APPLICABLE
The constant defining the priority that aDomainModelReferenceConverter
is not for aVDomainModelReference
.- See Also:
- Constant Field Values
-
-
Method Detail
-
isApplicable
double isApplicable(VDomainModelReference domainModelReference)
Checks whether the givenVDomainModelReference
can be converted by thisDomainModelReferenceConverter
to aIValueProperty
. The return value is the priority of this converter. The higher the priority, the better suits the converter the givenVDomainModelReference
.- Parameters:
domainModelReference
- TheVDomainModelReference
whose priority is wanted.- Returns:
- The priority of the given
VDomainModelReference
; negative infinity if this converter is not applicable.
-
convertToValueProperty
org.eclipse.core.databinding.property.value.IValueProperty convertToValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
Converts aVDomainModelReference
to aIValueProperty
.- Parameters:
domainModelReference
- TheVDomainModelReference
that will be converted to aIValueProperty
object
- The root object of the rendered form- Returns:
- The created
IValueProperty
, does not returnnull
. - Throws:
DatabindingFailedException
- if no value property could be created due to an invalidVDomainModelReference
.
-
convertToListProperty
org.eclipse.core.databinding.property.list.IListProperty convertToListProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
Converts aVDomainModelReference
to anIListProperty
.- Parameters:
domainModelReference
- TheVDomainModelReference
that will be converted to anIListProperty
object
- The root object of the rendered form- Returns:
- The created
IListProperty
, does not returnnull
. - Throws:
DatabindingFailedException
- if no value property could be created due to an invalidVDomainModelReference
.
-
-