Interface SegmentIdeDescriptor
-
- All Known Implementing Classes:
FeatureSegmentIdeDescriptor
,IndexSegmentIdeDescriptor
,MappingSegmentIdeDescriptor
,MultiSegmentIdeDescriptor
public interface SegmentIdeDescriptor
ASegmentIdeDescriptor
provides information about one type ofVDomainModelReferenceSegment
relevant to the IDE tooling. For instance, this information is needed by theCreateSegmentDmrWizard
to properly create DMRs with different segment types.- Since:
- 1.20
- Author:
- Lucas Koehler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EStructuralFeatureSelectionValidator
getEStructuralFeatureSelectionValidator()
Returns anEStructuralFeatureSelectionValidator
that determines whether anEStructuralFeature
is a valid reference path part for the described segment type.ReferenceTypeResolver
getReferenceTypeResolver()
Returns aReferenceTypeResolver
that resolves the rootEClass
for the next reference path segment from an EReference.org.eclipse.emf.ecore.EClass
getSegmentType()
Returns theEClass
of the segment type that is described by thisSegmentIdeDescriptor
.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.
-
-
-
Method Detail
-
getSegmentType
org.eclipse.emf.ecore.EClass getSegmentType()
Returns theEClass
of the segment type that is described by thisSegmentIdeDescriptor
.- Returns:
- The segment's
EClass
-
isAvailableInIde
boolean isAvailableInIde()
Defines whether the described segment type may be created by users.- Returns:
true
if users may create the type,false
otherwise
-
isLastElementInPath
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.- Returns:
true
if the segment must only be at the end of a path,false
otherwise
-
isAllowedAsLastElementInPath
boolean isAllowedAsLastElementInPath()
Defines whether the described segment can be the last element of a reference path.- Returns:
true
if the segment can be the last element of a reference path,false
otherwise
-
getEStructuralFeatureSelectionValidator
EStructuralFeatureSelectionValidator getEStructuralFeatureSelectionValidator()
Returns anEStructuralFeatureSelectionValidator
that determines whether anEStructuralFeature
is a valid reference path part for the described segment type. E.g. an index segment needs a multi reference or attribute.- Returns:
- The
EStructuralFeatureSelectionValidator
-
getReferenceTypeResolver
ReferenceTypeResolver getReferenceTypeResolver()
Returns aReferenceTypeResolver
that resolves the rootEClass
for the next reference path segment from an EReference.- Returns:
- The
ReferenceTypeResolver
-
-