Class SegmentResolvementUtil
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.model.util.SegmentResolvementUtil
-
public final class SegmentResolvementUtil extends java.lang.Object
This utility class provides methods to resolveVDomainModelReferenceSegments
against anEClass
.- Since:
- 1.20
- Author:
- Lucas Koehler
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
resolveSegments(java.util.List<VDomainModelReferenceSegment> segments, org.eclipse.emf.ecore.EClass rootEClass, java.util.function.Consumer<org.eclipse.emf.ecore.EStructuralFeature> callback)
Resolves a path ofVDomainModelReferenceSegments
starting at the givenEClass
.static java.util.List<org.eclipse.emf.ecore.EStructuralFeature>
resolveSegmentsToFeatureList(java.util.List<VDomainModelReferenceSegment> segments, org.eclipse.emf.ecore.EClass rootEClass)
Resolves a path ofVDomainModelReferenceSegments
starting at the givenEClass
.
-
-
-
Method Detail
-
resolveSegments
public static void resolveSegments(java.util.List<VDomainModelReferenceSegment> segments, org.eclipse.emf.ecore.EClass rootEClass, java.util.function.Consumer<org.eclipse.emf.ecore.EStructuralFeature> callback)
Resolves a path ofVDomainModelReferenceSegments
starting at the givenEClass
. For everyEStructuralFeature
which was resolved, the callback is called.- Parameters:
segments
- The path to resolverootEClass
- The rootEClass
of the pathcallback
- The callback to handle the resolvedEStructuralFeatures
-
resolveSegmentsToFeatureList
public static java.util.List<org.eclipse.emf.ecore.EStructuralFeature> resolveSegmentsToFeatureList(java.util.List<VDomainModelReferenceSegment> segments, org.eclipse.emf.ecore.EClass rootEClass)
Resolves a path ofVDomainModelReferenceSegments
starting at the givenEClass
. Returns a list of all resolvedEStructuralFeatures
with the same order as the given list of segments.- Parameters:
segments
- The path to resolverootEClass
- The rootEClass
of the path- Returns:
- The resolved
EStructuralFeatures
-
-