Interface DmrToRootEClassConverter
-
- All Known Implementing Classes:
FeatureDmrToRootEClassConverter
,IndexDmrToRootEClassConverter
,TableDmrToRootEClassConverter
public interface DmrToRootEClassConverter
Determines the rootEClass
for a subset of legacy domain model references. Do not use this directly, useLegacyDmrToRootEClass
instead.- Since:
- 1.22
- Author:
- Lucas Koehler
-
-
Field Summary
Fields Modifier and Type Field Description static double
NOT_APPLICABLE
The value that expresses that aDmrToRootEClassConverter
is not applicable for aVDomainModelReference
.
-
Method Summary
All Methods Instance Methods Abstract 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
.
-
-
-
Field Detail
-
NOT_APPLICABLE
static final double NOT_APPLICABLE
The value that expresses that aDmrToRootEClassConverter
is not applicable for aVDomainModelReference
.- See Also:
- Constant Field Values
-
-
Method Detail
-
isApplicable
double isApplicable(VDomainModelReference dmr)
Returns a double that expresses if and how suitable this DmrToRootEClassConverter is for the givenVDomainModelReference
.- Parameters:
dmr
- TheVDomainModelReference
- Returns:
- The value indicating how suitable this tester is,
NOT_APPLICABLE
if it can't work with the givenVDomainModelReference
.
-
getRootEClass
org.eclipse.emf.ecore.EClass getRootEClass(VDomainModelReference dmr) throws java.lang.IllegalArgumentException
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.- Parameters:
dmr
- TheVDomainModelReference
whose root EClass is calculated- Returns:
- The root EClass of the given dmr
- Throws:
java.lang.IllegalArgumentException
- if the root EClass cannot be determined because of an invalid dmr
-
-