Class StructuralChangeTesterDefault
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.structuralchange.defaultheuristic.StructuralChangeTesterDefault
-
- All Implemented Interfaces:
StructuralChangeTesterInternal
public class StructuralChangeTesterDefault extends java.lang.Object implements StructuralChangeTesterInternal
Default Heuristic for testing structural changes toVDomainModelReferences
.- Author:
- Lucas Köhler
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.core.services.structuralchange.StructuralChangeTesterInternal
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description StructuralChangeTesterDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
isApplicable(VDomainModelReference reference)
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReference
.boolean
isStructureChanged(VDomainModelReference reference, org.eclipse.emf.ecore.EObject domainRootObject, ModelChangeNotification notification)
Checks whether the domain structure of the givenVDomainModelReference
has changed for the changes indicated by the givenModelChangeNotification
.
-
-
-
Method Detail
-
isApplicable
public double isApplicable(VDomainModelReference reference)
Returns a double that expresses if and how suitable this tester is for the givenVDomainModelReference
.- Specified by:
isApplicable
in interfaceStructuralChangeTesterInternal
- Parameters:
reference
- TheVDomainModelReference
- Returns:
- The value indicating how suitable this tester is, negative infinity if it can't work with the given
VDomainModelReference
. - See Also:
StructuralChangeTesterInternal.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference)
-
isStructureChanged
public boolean isStructureChanged(VDomainModelReference reference, org.eclipse.emf.ecore.EObject domainRootObject, ModelChangeNotification notification)
Checks whether the domain structure of the givenVDomainModelReference
has changed for the changes indicated by the givenModelChangeNotification
.- Specified by:
isStructureChanged
in interfaceStructuralChangeTesterInternal
- Parameters:
reference
- TheVDomainModelReference
domainRootObject
- The root object of theVDomainModelReference
.notification
- TheModelChangeNotification
- Returns:
- true if the domain structure has changed, false otherwise
- See Also:
StructuralChangeTesterInternal.isStructureChanged(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecp.view.spi.model.ModelChangeNotification)
-
-