public class EmptyComparisonScope extends AbstractComparisonScope
diagnostic, left, nsURIs, origin, resourceURIs, right
Constructor and Description |
---|
EmptyComparisonScope()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<? extends EObject> |
getChildren(EObject eObject)
This will be used by EMF Compare in order to know which EObjects should be considered to be part of the
comparison scope when it is launched on the given EObject.
|
Iterator<? extends EObject> |
getCoveredEObjects(Resource resource)
This will be used by EMF Compare in order to determine the EObjects that it should iterate over.
|
Iterator<? extends Resource> |
getCoveredResources(ResourceSet resourceSet)
This will be used by EMF Compare in order to determine the Resources that should be considered part of
the comparison when it is launched on the given resource set.
|
getDiagnostic, getLeft, getNsURIs, getOrigin, getResourceURIs, getRight, setDiagnostic
public Iterator<? extends Resource> getCoveredResources(ResourceSet resourceSet)
Do note that this will only be called once per Resource. We will retrieve the set of EMF resources to
include in the comparison, match them, then use IComparisonScope.getCoveredEObjects(Resource)
in order to
determine the actual EObjects to cover during that comparison.
resourceSet
- The resource set for which we need to know all resources spanned by the comparison.Resource
s which are part of this scope.public Iterator<? extends EObject> getCoveredEObjects(Resource resource)
Do note that this will only be called once per comparison. EMF Compare expects this to return the whole set of EObjects that should be covered by the comparison when launched on the given Resource.
resource
- The resource for which we need to determine all EObjects spanned by the comparison.EObject
s which are part of this scope.public Iterator<? extends EObject> getChildren(EObject eObject)
Do note that this will only be called once per comparison on EObjects, and never for comparisons
launched on ResourceSet
s or Resource
s. EMF Compare expects the whole set of EObject
that should be covered by the comparison to be returned by this.
eObject
- The EObject for which we need to determine the comparison scope.EObject
s which are part of this scope.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.