public interface SegmentIdeDescriptor
SegmentIdeDescriptor
provides information about one type of VDomainModelReferenceSegment
relevant
to the IDE tooling. For instance, this information is needed by the CreateSegmentDmrWizard
to properly create DMRs with different segment types.Modifier and Type | Method and Description |
---|---|
EStructuralFeatureSelectionValidator |
getEStructuralFeatureSelectionValidator()
Returns an
EStructuralFeatureSelectionValidator that determines whether an EStructuralFeature is
a valid reference path part for the described segment type. |
ReferenceTypeResolver |
getReferenceTypeResolver()
Returns a
ReferenceTypeResolver that resolves the root EClass for the next reference path segment
from an EReference. |
org.eclipse.emf.ecore.EClass |
getSegmentType()
Returns the
EClass of the segment type that is described by this SegmentIdeDescriptor . |
boolean |
isAllowedAsLastElementInPath()
Defines whether the described segment can be the last element of a reference path.
|
boolean |
isAvailableInIde()
Defines whether the described segment type may be created by users.
|
boolean |
isLastElementInPath()
Defines whether the described segment may appear in the middle of a reference path or if the segment is only
allowed to be at the end of a path.
|
org.eclipse.emf.ecore.EClass getSegmentType()
EClass
of the segment type that is described by this SegmentIdeDescriptor
.EClass
boolean isAvailableInIde()
true
if users may create the type, false
otherwiseboolean isLastElementInPath()
true
if the segment must only be at the end of a path, false
otherwiseboolean isAllowedAsLastElementInPath()
true
if the segment can be the last element of a reference path, false
otherwiseEStructuralFeatureSelectionValidator getEStructuralFeatureSelectionValidator()
EStructuralFeatureSelectionValidator
that determines whether an EStructuralFeature
is
a valid reference path part for the described segment type. E.g. an index segment needs a multi reference or
attribute.EStructuralFeatureSelectionValidator
ReferenceTypeResolver getReferenceTypeResolver()
ReferenceTypeResolver
that resolves the root EClass
for the next reference path segment
from an EReference.ReferenceTypeResolver
Copyright © 2019. All rights reserved.