public final class SegmentResolvementUtil extends Object
VDomainModelReferenceSegments
against an EClass
.Modifier and Type | Method and Description |
---|---|
static void |
resolveSegments(List<VDomainModelReferenceSegment> segments,
org.eclipse.emf.ecore.EClass rootEClass,
Consumer<org.eclipse.emf.ecore.EStructuralFeature> callback)
Resolves a path of
VDomainModelReferenceSegments starting at the given
EClass . |
static List<org.eclipse.emf.ecore.EStructuralFeature> |
resolveSegmentsToFeatureList(List<VDomainModelReferenceSegment> segments,
org.eclipse.emf.ecore.EClass rootEClass)
Resolves a path of
VDomainModelReferenceSegments starting at the given
EClass . |
public static void resolveSegments(List<VDomainModelReferenceSegment> segments, org.eclipse.emf.ecore.EClass rootEClass, Consumer<org.eclipse.emf.ecore.EStructuralFeature> callback)
VDomainModelReferenceSegments
starting at the given
EClass
. For every EStructuralFeature
which was resolved, the callback is called.segments
- The path to resolverootEClass
- The root EClass
of the pathcallback
- The callback to handle the resolved EStructuralFeatures
public static List<org.eclipse.emf.ecore.EStructuralFeature> resolveSegmentsToFeatureList(List<VDomainModelReferenceSegment> segments, org.eclipse.emf.ecore.EClass rootEClass)
VDomainModelReferenceSegments
starting at the given
EClass
. Returns a list of all resolved EStructuralFeatures
with the same order
as the given list of segments.segments
- The path to resolverootEClass
- The root EClass
of the pathEStructuralFeatures
Copyright © 2019. All rights reserved.