Class FeatureValuePairMatcher
java.lang.Object
com.e1c.langtool.v8.dt.internal.ui.refactoring.FeatureValuePairMatcher
Utility class with methods for matching
FeatureValue before and after rename refactoring.-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<FeatureValue,FeatureValue> matchRenamedChildObjectFeatureValues(Set<FeatureValue> first, Set<FeatureValue> second) static Map<FeatureValue,FeatureValue> matchRenamedTopObjectFeatureValues(Set<FeatureValue> first, Set<FeatureValue> second) Try to find mapping between two sets ofFeatureValue.
-
Method Details
-
matchRenamedTopObjectFeatureValues
public static Map<FeatureValue,FeatureValue> matchRenamedTopObjectFeatureValues(Set<FeatureValue> first, Set<FeatureValue> second) Try to find mapping between two sets ofFeatureValue. If no mapping found for item, they will be not added to the result. Note: Assuming all FeatueValues presented in input data are in valid state (especially, FileFeatureValues). TODO: Issue #396: Migrate from FeatureValue to GlobalFeatureKey- Parameters:
first- FirstFeatureValuesetsecond- SecondFeatureValueset- Returns:
- Mapping between items in given sets
-
matchRenamedChildObjectFeatureValues
public static Map<FeatureValue,FeatureValue> matchRenamedChildObjectFeatureValues(Set<FeatureValue> first, Set<FeatureValue> second)
-