Class RightsComponentMatcher

java.lang.Object
com._1c.g5.v8.dt.internal.rights.compare.RightsComponentMatcher
All Implemented Interfaces:
IEmfObjectMatcher, IObjectMatcher<org.eclipse.emf.ecore.EObject,MatchedEmfObjects>

public class RightsComponentMatcher extends Object implements IEmfObjectMatcher
A custom matcher for right's components.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RightsComponentMatcher(org.eclipse.emf.ecore.EClassifier type)
    Creates a new matcher for RightsPackage.Literals.RESTRICTION_TEMPLATE or RightsPackage.Literals.RLS with the specified matching strategy (by type).
  • Method Summary

    Modifier and Type
    Method
    Description
    match(List<org.eclipse.emf.ecore.EObject> mainObjects, List<org.eclipse.emf.ecore.EObject> otherObjects, List<org.eclipse.emf.ecore.EObject> ancestorObjects)
    Returns a collection of matched objects for the specified collections of objects.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RightsComponentMatcher

      public RightsComponentMatcher(org.eclipse.emf.ecore.EClassifier type)
      Creates a new matcher for RightsPackage.Literals.RESTRICTION_TEMPLATE or RightsPackage.Literals.RLS with the specified matching strategy (by type).
      Parameters:
      type - the EObject type for determining the matching strategy, cannot be null
  • Method Details

    • match

      public Collection<MatchedEmfObjects> match(List<org.eclipse.emf.ecore.EObject> mainObjects, List<org.eclipse.emf.ecore.EObject> otherObjects, List<org.eclipse.emf.ecore.EObject> ancestorObjects)
      Description copied from interface: IObjectMatcher
      Returns a collection of matched objects for the specified collections of objects.
      Specified by:
      match in interface IObjectMatcher<org.eclipse.emf.ecore.EObject,MatchedEmfObjects>
      Parameters:
      mainObjects - the collection of objects to be matched from the main side
      otherObjects - the collection of objects to be matched from the other side
      ancestorObjects - the collection of objects to be matched from the common ancestor side
      Returns:
      a collection of matched compared objects with ids