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()
SegmentIdeDescriptor
isAvailableInIde
in interface SegmentIdeDescriptor
true
if users may create the type, false
otherwisepublic EStructuralFeatureSelectionValidator getEStructuralFeatureSelectionValidator()
SegmentIdeDescriptor
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.getEStructuralFeatureSelectionValidator
in interface SegmentIdeDescriptor
EStructuralFeatureSelectionValidator
public org.eclipse.emf.ecore.EClass getSegmentType()
SegmentIdeDescriptor
EClass
of the segment type that is described by this SegmentIdeDescriptor
.getSegmentType
in interface SegmentIdeDescriptor
EClass
public boolean isLastElementInPath()
SegmentIdeDescriptor
isLastElementInPath
in interface SegmentIdeDescriptor
true
if the segment must only be at the end of a path, false
otherwisepublic ReferenceTypeResolver getReferenceTypeResolver()
SegmentIdeDescriptor
ReferenceTypeResolver
that resolves the root EClass
for the next reference path segment
from an EReference.getReferenceTypeResolver
in interface SegmentIdeDescriptor
ReferenceTypeResolver
public boolean isAllowedAsLastElementInPath()
SegmentIdeDescriptor
isAllowedAsLastElementInPath
in interface SegmentIdeDescriptor
true
if the segment can be the last element of a reference path, false
otherwiseCopyright © 2019. All rights reserved.