public class EcoreWeightProvider extends DefaultWeightProvider
WeightProvider
applicable to all ecore
objects.WeightProvider.Descriptor
attributeChangeCoef, referenceChangeCoef, weights
MAJOR, MASSIVE, NORMAL, SIGNIFICANT, SMALL, UNLIKELY_TO_MATCH
Constructor and Description |
---|
EcoreWeightProvider() |
Modifier and Type | Method and Description |
---|---|
int |
getContainingFeatureWeight(EObject a)
Return the weight associated with the fact some Object has changed it's containing reference.
|
int |
getParentWeight(EObject a)
Return the weight associated with the fact some Object has changed it's container.
|
int |
getWeight(EStructuralFeature feature)
Return the weight for the given feature.
|
irrelevant
public int getWeight(EStructuralFeature feature)
getWeight
in interface WeightProvider
getWeight
in class DefaultWeightProvider
feature
- any EStructuralFeature
.public int getParentWeight(EObject a)
getParentWeight
in interface WeightProvider
getParentWeight
in class DefaultWeightProvider
a
- any instance.public int getContainingFeatureWeight(EObject a)
getContainingFeatureWeight
in interface WeightProvider
getContainingFeatureWeight
in class DefaultWeightProvider
a
- any instance.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.