Class FeatureValuePairMatcher

java.lang.Object
com.e1c.langtool.v8.dt.internal.ui.refactoring.FeatureValuePairMatcher

public class FeatureValuePairMatcher extends Object
Utility class with methods for matching FeatureValue before and after rename refactoring.
  • Method Details

    • matchRenamedTopObjectFeatureValues

      public static Map<FeatureValue,FeatureValue> matchRenamedTopObjectFeatureValues(Set<FeatureValue> first, Set<FeatureValue> second)
      Try to find mapping between two sets of FeatureValue. 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 - First FeatureValue set
      second - Second FeatureValue set
      Returns:
      Mapping between items in given sets
    • matchRenamedChildObjectFeatureValues

      public static Map<FeatureValue,FeatureValue> matchRenamedChildObjectFeatureValues(Set<FeatureValue> first, Set<FeatureValue> second)