Class FeatureDmrToRootEClassConverter
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.segments.featurepath.FeatureDmrToRootEClassConverter
-
- All Implemented Interfaces:
DmrToRootEClassConverter
- Direct Known Subclasses:
IndexDmrToRootEClassConverter
,TableDmrToRootEClassConverter
public class FeatureDmrToRootEClassConverter extends java.lang.Object implements DmrToRootEClassConverter
- Author:
- Lucas Koehler
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.core.services.segments.DmrToRootEClassConverter
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description FeatureDmrToRootEClassConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EClass
getRootEClass(VDomainModelReference dmr)
Determines the rootEClass
of the given legacy domain model reference.double
isApplicable(VDomainModelReference dmr)
Returns a double that expresses if and how suitable this DmrToRootEClassConverter is for the givenVDomainModelReference
.
-
-
-
Method Detail
-
isApplicable
public double isApplicable(VDomainModelReference dmr)
Description copied from interface:DmrToRootEClassConverter
Returns a double that expresses if and how suitable this DmrToRootEClassConverter is for the givenVDomainModelReference
.- Specified by:
isApplicable
in interfaceDmrToRootEClassConverter
- Parameters:
dmr
- TheVDomainModelReference
- Returns:
- The value indicating how suitable this tester is,
DmrToRootEClassConverter.NOT_APPLICABLE
if it can't work with the givenVDomainModelReference
.
-
getRootEClass
public org.eclipse.emf.ecore.EClass getRootEClass(VDomainModelReference dmr)
Description copied from interface:DmrToRootEClassConverter
Determines the rootEClass
of the given legacy domain model reference. Throws an exception if the root EClass could not be determined because this means that the given DMR is invalid.- Specified by:
getRootEClass
in interfaceDmrToRootEClassConverter
- Parameters:
dmr
- TheVDomainModelReference
whose root EClass is calculated- Returns:
- The root EClass of the given dmr
-
-