Class FeatureSegmentStructuralChangeTester
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.segments.featurepath.FeatureSegmentStructuralChangeTester
-
- All Implemented Interfaces:
StructuralChangeSegmentTester
public class FeatureSegmentStructuralChangeTester extends java.lang.Object implements StructuralChangeSegmentTester
AStructuralChangeSegmentTester
implementation forVFeatureDomainModelReferenceSegments
.- Author:
- Lucas Koehler
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.core.services.structuralchange.StructuralChangeSegmentTester
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description FeatureSegmentStructuralChangeTester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
isApplicable(VDomainModelReferenceSegment segment)
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReferenceSegment
.boolean
isStructureChanged(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject domainObject, ModelChangeNotification notification)
Checks whether the domain structure of the givenVDomainModelReferenceSegment
has changed for the changes indicated by the givenModelChangeNotification
.protected void
setEMFFormsSegmentResolver(EMFFormsSegmentResolver segmentResolver)
Sets theEMFFormsSegmentResolver
.protected void
setReportService(ReportService reportService)
Sets theReportService
.
-
-
-
Method Detail
-
setEMFFormsSegmentResolver
protected void setEMFFormsSegmentResolver(EMFFormsSegmentResolver segmentResolver)
Sets theEMFFormsSegmentResolver
.- Parameters:
segmentResolver
- TheEMFFormsSegmentResolver
-
setReportService
protected void setReportService(ReportService reportService)
Sets theReportService
.- Parameters:
reportService
- TheReportService
-
isStructureChanged
public boolean isStructureChanged(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject domainObject, ModelChangeNotification notification)
Description copied from interface:StructuralChangeSegmentTester
Checks whether the domain structure of the givenVDomainModelReferenceSegment
has changed for the changes indicated by the givenModelChangeNotification
.- Specified by:
isStructureChanged
in interfaceStructuralChangeSegmentTester
- Parameters:
segment
- TheVDomainModelReferenceSegment
domainObject
- The domain object of thesegment
.notification
- TheModelChangeNotification
- Returns:
- true if the domain structure has changed, false otherwise
-
isApplicable
public double isApplicable(VDomainModelReferenceSegment segment)
Description copied from interface:StructuralChangeSegmentTester
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReferenceSegment
.- Specified by:
isApplicable
in interfaceStructuralChangeSegmentTester
- Parameters:
segment
- TheVDomainModelReferenceSegment
- Returns:
- The value indicating how suitable this tester is, negative infinity if it can't work with the given
VDomainModelReferenceSegment
.
-
-