Interface StructuralChangeSegmentTester
-
- All Known Implementing Classes:
FeatureSegmentStructuralChangeTester
,IndexSegmentStructuralChangeTester
,MappingSegmentStructuralChangeTester
public interface StructuralChangeSegmentTester
A concrete structural change tester for a type ofVDomainModelReferenceSegment
.- Since:
- 1.19
- Author:
- Lucas Koehler
-
-
Field Summary
Fields Modifier and Type Field Description static double
NOT_APPLICABLE
The value that expresses that aStructuralChangeSegmentTester
is not applicable for aVDomainModelReferenceSegment
.
-
Method Summary
All Methods Instance Methods Abstract 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
.
-
-
-
Field Detail
-
NOT_APPLICABLE
static final double NOT_APPLICABLE
The value that expresses that aStructuralChangeSegmentTester
is not applicable for aVDomainModelReferenceSegment
.- See Also:
- Constant Field Values
-
-
Method Detail
-
isApplicable
double isApplicable(VDomainModelReferenceSegment segment)
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReferenceSegment
.- Parameters:
segment
- TheVDomainModelReferenceSegment
- Returns:
- The value indicating how suitable this tester is, negative infinity if it can't work with the given
VDomainModelReferenceSegment
.
-
isStructureChanged
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
.- Parameters:
segment
- TheVDomainModelReferenceSegment
domainObject
- The domain object of thesegment
.notification
- TheModelChangeNotification
- Returns:
- true if the domain structure has changed, false otherwise
-
-