Class RecursiveFeatureMultiMatcher

All Implemented Interfaces:
IEmfObjectMatcher, IObjectMatcher<org.eclipse.emf.ecore.EObject,MatchedEmfObjects>

public class RecursiveFeatureMultiMatcher extends AbstractMultiEmfObjectMatcher
A multi matcher based on features which are interpreted as the identifier of the object and called for object recursively.
  • Constructor Details

    • RecursiveFeatureMultiMatcher

      public RecursiveFeatureMultiMatcher(List<org.eclipse.emf.ecore.EStructuralFeature> features)
      Creates a new instance.
      Parameters:
      features - the feature list to match objects by recursively, all features (except last one) should be single and its type should be EClass, cannot be null
  • Method Details

    • getId

      protected Object getId(org.eclipse.emf.ecore.EObject eObject, ComparisonSide side)
      Description copied from class: AbstractIdBasedObjectMatcher
      For the specified compared object returns its identifier.
      Specified by:
      getId in class AbstractIdBasedObjectMatcher<org.eclipse.emf.ecore.EObject,MatchedEmfObjects>
      Parameters:
      eObject - the compared object to get an identifier of its side for, cannot be null
      side - the side of the compared object, cannot be null
      Returns:
      identifier or null if the side is empty