Class IndexSegmentIdeDescriptor
- java.lang.Object
-
- org.eclipse.emfforms.internal.ide.view.indexsegment.IndexSegmentIdeDescriptor
-
- All Implemented Interfaces:
SegmentIdeDescriptor
public class IndexSegmentIdeDescriptor extends java.lang.Object implements SegmentIdeDescriptor
- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description IndexSegmentIdeDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EStructuralFeatureSelectionValidatorgetEStructuralFeatureSelectionValidator()Returns anEStructuralFeatureSelectionValidatorthat determines whether anEStructuralFeatureis a valid reference path part for the described segment type.ReferenceTypeResolvergetReferenceTypeResolver()Returns aReferenceTypeResolverthat resolves the rootEClassfor the next reference path segment from an EReference.org.eclipse.emf.ecore.EClassgetSegmentType()Returns theEClassof the segment type that is described by thisSegmentIdeDescriptor.booleanisAllowedAsLastElementInPath()Defines whether the described segment can be the last element of a reference path.booleanisAvailableInIde()Defines whether the described segment type may be created by users.booleanisLastElementInPath()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
-
isAvailableInIde
public boolean isAvailableInIde()
Description copied from interface:SegmentIdeDescriptorDefines whether the described segment type may be created by users.- Specified by:
isAvailableInIdein interfaceSegmentIdeDescriptor- Returns:
trueif users may create the type,falseotherwise
-
isLastElementInPath
public boolean isLastElementInPath()
Description copied from interface:SegmentIdeDescriptorDefines 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.- Specified by:
isLastElementInPathin interfaceSegmentIdeDescriptor- Returns:
trueif the segment must only be at the end of a path,falseotherwise
-
isAllowedAsLastElementInPath
public boolean isAllowedAsLastElementInPath()
Description copied from interface:SegmentIdeDescriptorDefines whether the described segment can be the last element of a reference path.- Specified by:
isAllowedAsLastElementInPathin interfaceSegmentIdeDescriptor- Returns:
trueif the segment can be the last element of a reference path,falseotherwise
-
getEStructuralFeatureSelectionValidator
public EStructuralFeatureSelectionValidator getEStructuralFeatureSelectionValidator()
Description copied from interface:SegmentIdeDescriptorReturns anEStructuralFeatureSelectionValidatorthat determines whether anEStructuralFeatureis a valid reference path part for the described segment type. E.g. an index segment needs a multi reference or attribute.- Specified by:
getEStructuralFeatureSelectionValidatorin interfaceSegmentIdeDescriptor- Returns:
- The
EStructuralFeatureSelectionValidator
-
getReferenceTypeResolver
public ReferenceTypeResolver getReferenceTypeResolver()
Description copied from interface:SegmentIdeDescriptorReturns aReferenceTypeResolverthat resolves the rootEClassfor the next reference path segment from an EReference.- Specified by:
getReferenceTypeResolverin interfaceSegmentIdeDescriptor- Returns:
- The
ReferenceTypeResolver
-
getSegmentType
public org.eclipse.emf.ecore.EClass getSegmentType()
Description copied from interface:SegmentIdeDescriptorReturns theEClassof the segment type that is described by thisSegmentIdeDescriptor.- Specified by:
getSegmentTypein interfaceSegmentIdeDescriptor- Returns:
- The segment's
EClass
-
-