Interface WeightProvider
-
- All Known Implementing Classes:
AbstractWeightProvider,DefaultWeightProvider,EcoreWeightProvider
public interface WeightProviderProvide the weight to consider while comparing EObjects by their content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWeightProvider.DescriptorWrapper describing the given weight provider.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetContainingFeatureWeight(EObject a)Return the weight associated with the fact some Object has changed it's containing reference.intgetParentWeight(EObject a)Return the weight associated with the fact some Object has changed it's container.intgetWeight(EStructuralFeature attribute)Return the weight for the given feature.
-
-
-
Method Detail
-
getWeight
int getWeight(EStructuralFeature attribute)
Return the weight for the given feature.- Parameters:
attribute- anyEStructuralFeature.- Returns:
- the weight for the given feature. 0 meaning no effects.
-
getParentWeight
int getParentWeight(EObject a)
Return the weight associated with the fact some Object has changed it's container.- Parameters:
a- any instance.- Returns:
- a weight representing the importance of the change of container to compute matches.
-
getContainingFeatureWeight
int getContainingFeatureWeight(EObject a)
Return the weight associated with the fact some Object has changed it's containing reference.- Parameters:
a- any instance.- Returns:
- a weight representing the importance of the change of containing reference to compute matches.
-
-