@FunctionalInterface public interface ReferenceTypeResolver
DMR segment
.
Example: The reference type of a map referenced by a mapping segment is
Map$Entry<EClass, ? extends EObject>
.
However, the root EClass for the next path segment must be the second type parameter of Map$Entry
.
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.EClass |
resolveNextEClass(org.eclipse.emf.ecore.EReference reference,
VDomainModelReferenceSegment segment)
Resolves the root EClass for the next reference path segment.
|
org.eclipse.emf.ecore.EClass resolveNextEClass(org.eclipse.emf.ecore.EReference reference, VDomainModelReferenceSegment segment)
reference
- The EReference
to resolve the EClass
fromsegment
- The segment that contains the EReference
. For some segment types (e.g. mapping segments)
this allows to return a more precise EClass
. May be null
.EClass
or null if no valid type can be resolvedCopyright © 2019. All rights reserved.