Interface ReferenceTypeResolver
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ReferenceTypeResolver
Used to resolve the root EClass for the next path segment from an EReference for a certain type ofDMR segment
.Example: The reference type of a map referenced by a mapping segment is M
ap$Entry<EClass, ? extends EObject>
. However, the root EClass for the next path segment must be the second type parameter ofMap$Entry
.- Since:
- 1.20
- Author:
- Lucas Koehler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
resolveNextEClass
org.eclipse.emf.ecore.EClass resolveNextEClass(org.eclipse.emf.ecore.EReference reference, VDomainModelReferenceSegment segment)
Resolves the root EClass for the next reference path segment. Returns null if no valid type can be resolved.- Parameters:
reference
- TheEReference
to resolve theEClass
fromsegment
- The segment that contains theEReference
. For some segment types (e.g. mapping segments) this allows to return a more preciseEClass
. May benull
.- Returns:
- the resolved
EClass
or null if no valid type can be resolved
-
-