Class ObjectRightsMatcher

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

public class ObjectRightsMatcher extends ExternalReferenceFeatureMatcher
The matcher for RightsPackage.Literals.OBJECT_RIGHTS.
  • Constructor Details

    • ObjectRightsMatcher

      public ObjectRightsMatcher(ComparisonContext comparisonContext, TopComparisonNode rightsNode, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Creates a new matcher.
      Parameters:
      comparisonContext - the comparison context, cannot be null
      rightsNode - the rights comparison node, cannot be null
      scopeProvider - the scope provider, cannot be null
  • Method Details

    • getSymlink

      protected String getSymlink(IComparisonDataSource dataSource, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Description copied from class: ExternalReferenceFeatureMatcher
      Returns a symbolic link for the external reference from a context object.
      Overrides:
      getSymlink in class ExternalReferenceFeatureMatcher
      Parameters:
      dataSource - the comparison data source, cannot be null
      context - the referencing object, cannot be null
      reference - the external reference to match object for, cannot be null
      scopeProvider - the scope provider, cannot be null
      Returns:
      the symbolic link, never null