public interface DmrToRootEClassConverter
EClass
for a subset of legacy domain model references. Do not use this directly, use
LegacyDmrToRootEClass
instead.Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
The value that expresses that a
DmrToRootEClassConverter is not applicable for a
VDomainModelReference . |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.EClass |
getRootEClass(VDomainModelReference dmr)
Determines the root
EClass 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 given
VDomainModelReference . |
static final double NOT_APPLICABLE
DmrToRootEClassConverter
is not applicable for a
VDomainModelReference
.double isApplicable(VDomainModelReference dmr)
VDomainModelReference
.dmr
- The VDomainModelReference
NOT_APPLICABLE
if it can't work with the given
VDomainModelReference
.org.eclipse.emf.ecore.EClass getRootEClass(VDomainModelReference dmr) throws IllegalArgumentException
EClass
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.dmr
- The VDomainModelReference
whose root EClass is calculatedIllegalArgumentException
- if the root EClass cannot be determined because of an invalid dmrCopyright © 2019. All rights reserved.