org.eclipse.emf.cdo.compare
Class CDOComparisonScope.AllContents

java.lang.Object
  extended by AbstractComparisonScope
      extended by org.eclipse.emf.cdo.compare.CDOComparisonScope
          extended by org.eclipse.emf.cdo.compare.CDOComparisonScope.AllContents
Enclosing class:
CDOComparisonScope

public static class CDOComparisonScope.AllContents
extends CDOComparisonScope

Takes an arbitrary object (including resource nodes) and returns matches for all elements of its content tree. This scope has the advantage that the comparison can be rooted at specific objects that are different from (below of) the root resource. The disadvantage is that all the transitive children of this specific object are matched, whether they differ or not. Major parts of huge repositories can be loaded to the client side easily, if no attention is paid. The following method returns comparisons that are based on this scope algorithm:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.cdo.compare.CDOComparisonScope
CDOComparisonScope.AllContents, CDOComparisonScope.Minimal
 
Constructor Summary
CDOComparisonScope.AllContents(Notifier left, Notifier right, Notifier origin)
           
 
Method Summary
static CDOComparisonScope.AllContents create(CDOObject left, CDOView rightView, CDOView[] originView)
          Takes an arbitrary object (including resource nodes) and returns matches for all elements of its content tree.
 Iterator<? extends EObject> getChildren(EObject eObject)
           
 
Methods inherited from class org.eclipse.emf.cdo.compare.CDOComparisonScope
getCoveredEObjects, getCoveredResources, isResolveProxies, setResolveProxies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOComparisonScope.AllContents

public CDOComparisonScope.AllContents(Notifier left,
                                      Notifier right,
                                      Notifier origin)
Method Detail

getChildren

public Iterator<? extends EObject> getChildren(EObject eObject)

create

public static CDOComparisonScope.AllContents create(CDOObject left,
                                                    CDOView rightView,
                                                    CDOView[] originView)
Takes an arbitrary object (including resource nodes) and returns matches for all elements of its content tree. This scope has the advantage that the comparison can be rooted at specific objects that are different from (below of) the root resource. The disadvantage is that all the transitive children of this specific object are matched, whether they differ or not. Major parts of huge repositories can be loaded to the client side easily, if no attention is paid.



Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.