public class MultiSegmentIdeDescriptor extends Object implements SegmentIdeDescriptor
| Constructor and Description |
|---|
MultiSegmentIdeDescriptor() |
| 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.
|
public boolean isAvailableInIde()
SegmentIdeDescriptorisAvailableInIde in interface SegmentIdeDescriptortrue if users may create the type, false otherwisepublic EStructuralFeatureSelectionValidator getEStructuralFeatureSelectionValidator()
SegmentIdeDescriptorEStructuralFeatureSelectionValidator 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.getEStructuralFeatureSelectionValidator in interface SegmentIdeDescriptorEStructuralFeatureSelectionValidatorpublic org.eclipse.emf.ecore.EClass getSegmentType()
SegmentIdeDescriptorEClass of the segment type that is described by this SegmentIdeDescriptor.getSegmentType in interface SegmentIdeDescriptorEClasspublic boolean isLastElementInPath()
SegmentIdeDescriptorisLastElementInPath in interface SegmentIdeDescriptortrue if the segment must only be at the end of a path, false otherwisepublic ReferenceTypeResolver getReferenceTypeResolver()
SegmentIdeDescriptorReferenceTypeResolver that resolves the root EClass for the next reference path segment
from an EReference.getReferenceTypeResolver in interface SegmentIdeDescriptorReferenceTypeResolverpublic boolean isAllowedAsLastElementInPath()
SegmentIdeDescriptorisAllowedAsLastElementInPath in interface SegmentIdeDescriptortrue if the segment can be the last element of a reference path, false
otherwiseCopyright © 2020. All rights reserved.