Class AbstractComparisonScope

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.compare.scope.AbstractComparisonScope
All Implemented Interfaces:
Adapter, Adapter.Internal, IComparisonScope, IComparisonScope2, IDiagnosable
Direct Known Subclasses:
EmptyComparisonScope, FilterComparisonScope

public abstract class AbstractComparisonScope
extends AdapterImpl
implements IComparisonScope2, IDiagnosable
This implementation of IComparisonScope can be sub-classed in order to avoid re-implementing some of the methods imposed by this interface.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter

    Adapter.Internal
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.util.Set<URI> allInvolvedResourceURIs
    The resources URIs representing the files that have been selected to be in the scope of the comparison.
    protected Diagnostic diagnostic
    The diagnostic of the notifiers.
    protected Notifier left
    The left root of this comparison.
    protected java.util.Set<java.lang.String> nsURIs
    The namespace uris detected in the comparison.
    protected Notifier origin
    The common ancestor of left and right.
    protected java.util.Set<java.lang.String> resourceURIs
    The resource uris detected in the comparison.
    protected Notifier right
    The right root of this comparison.

    Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl

    target
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractComparisonScope​(Notifier left, Notifier right, Notifier origin)
    This will instantiate a scope with left, right and origin Notifiers defined.
  • Method Summary

    Modifier and Type Method Description
    java.util.Set<URI> getAllInvolvedResourceURIs()
    Returns the URIs of the all files involved in this scope.
    Diagnostic getDiagnostic()
    Return the diagnostic associated with this scope.
    Notifier getLeft()
    This will be used by EMF Compare in order to retrieve the left "root" Notifier of this comparison; i.e the first object to be considered by the match engine, and from which the iteration over children should start.
    java.util.Set<java.lang.String> getNsURIs()
    This will be used by EMF Compare in order to retrieve the namespace uris detected in the scope.
    Notifier getOrigin()
    If EMF Compare should consider a Notifier as being the common ancestor of the "left" and "right" objects to compare, it should be returned from here.
    java.util.Set<java.lang.String> getResourceURIs()
    This will be used by EMF Compare in order to retrieve the resource uris detected in the scope.
    Notifier getRight()
    This will be used by EMF Compare in order to retrieve the right "root" Notifier of this comparison; i.e the first object to be considered by the match engine, and from which the iteration over children should start.
    boolean isAdapterForType​(java.lang.Object type)  
    void setDiagnostic​(Diagnostic diagnostic)
    Set the diagnostic to be associated with this scope.

    Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl

    getTarget, notifyChanged, setTarget, unsetTarget

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.emf.compare.scope.IComparisonScope

    getChildren, getCoveredEObjects, getCoveredResources
  • Field Details

    • left

      protected Notifier left
      The left root of this comparison.
    • right

      protected Notifier right
      The right root of this comparison.
    • origin

      protected Notifier origin
      The common ancestor of left and right. May be null.
    • nsURIs

      protected java.util.Set<java.lang.String> nsURIs
      The namespace uris detected in the comparison.
    • resourceURIs

      protected java.util.Set<java.lang.String> resourceURIs
      The resource uris detected in the comparison.
    • diagnostic

      protected Diagnostic diagnostic
      The diagnostic of the notifiers.
    • allInvolvedResourceURIs

      protected java.util.Set<URI> allInvolvedResourceURIs
      The resources URIs representing the files that have been selected to be in the scope of the comparison.
  • Constructor Details

    • AbstractComparisonScope

      public AbstractComparisonScope​(Notifier left, Notifier right, Notifier origin)
      This will instantiate a scope with left, right and origin Notifiers defined.
      Parameters:
      left - The left root of this comparison.
      right - The right root of this comparison.
      origin - The common ancestor of left and right. May be null.
  • Method Details