|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.compare.match.engine.GenericMatchScopeProvider
public class GenericMatchScopeProvider
The default implementation of an IMatchScopeProvider. It will use GenericMatchScope
implementations for all its scopes.
| Constructor Summary | |
|---|---|
GenericMatchScopeProvider(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject)
Constructs a left and right GenericMatchScope with the given EObjects. |
|
GenericMatchScopeProvider(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject,
org.eclipse.emf.ecore.EObject ancestorObject)
Constructs a left, right, and ancestor GenericMatchScope with the given EObjects. |
|
GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource)
Constructs a left and right GenericMatchScope with the given Resources. |
|
GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
org.eclipse.emf.ecore.resource.Resource ancestorResource)
Constructs a left, right, and ancestor GenericMatchScope with the given Resources. |
|
GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet)
Constructs a left and right GenericMatchScope with the given ResourceSets. |
|
GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet ancestorResourceSet)
Constructs a left, right, and ancestor GenericMatchScope with the given ResourceSets. |
|
| Method Summary | |
|---|---|
void |
applyResourceFilter(IResourceFilter filter)
Allows to apply an IResourceFilter to the contained scopes, to reduce them respectively. |
IMatchScope |
getAncestorScope()
The IMatchScope to restrict the ancestor side of comparison. |
IMatchScope |
getLeftScope()
The IMatchScope to restrict the left side of comparison. |
IMatchScope |
getRightScope()
The IMatchScope to restrict the right side of comparison. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericMatchScopeProvider(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject)
GenericMatchScope with the given EObjects. No ancestor
scope will be created, so calls to getAncestorScope() will return null.
leftObject - the EObject, which will be used to construct the left scoperightObject - the EObject, which will be used to construct the right scope
public GenericMatchScopeProvider(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject,
org.eclipse.emf.ecore.EObject ancestorObject)
GenericMatchScope with the given EObjects.
leftObject - the EObject, which will be used to construct the left scoperightObject - the EObject, which will be used to construct the right scopeancestorObject - the EObject, which will be used to construct the ancestor scope
public GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource)
GenericMatchScope with the given Resources. No ancestor
scope will be created, so calls to getAncestorScope() will return null.
leftResource - the Resource, which will be used to construct the left scoperightResource - the Resource, which will be used to construct the right scope
public GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
org.eclipse.emf.ecore.resource.Resource ancestorResource)
GenericMatchScope with the given Resources.
leftResource - the Resource, which will be used to construct the left scoperightResource - the Resource, which will be used to construct the right scopeancestorResource - the Resource, which will be used to construct the ancestor scope
public GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet)
GenericMatchScope with the given ResourceSets. No ancestor
scope will be created, so calls to getAncestorScope() will return null.
leftResourceSet - the ResourceSet, which will be used to construct the left scoperightResourceSet - the ResourceSet, which will be used to construct the right scope
public GenericMatchScopeProvider(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet ancestorResourceSet)
GenericMatchScope with the given ResourceSets.
leftResourceSet - the ResourceSet, which will be used to construct the left scoperightResourceSet - the ResourceSet, which will be used to construct the right scopeancestorResourceSet - the ResourceSet, which will be used to construct the ancestor scope| Method Detail |
|---|
public IMatchScope getAncestorScope()
IMatchScope to restrict the ancestor side of comparison.
getAncestorScope in interface IMatchScopeProviderIMatchScope. May also be null in case it is used in a
two-way-comparison scenario.IMatchScopeProvider.getAncestorScope()public IMatchScope getLeftScope()
IMatchScope to restrict the left side of comparison.
getLeftScope in interface IMatchScopeProviderIMatchScope. May not be null.IMatchScopeProvider.getLeftScope()public IMatchScope getRightScope()
IMatchScope to restrict the right side of comparison.
getRightScope in interface IMatchScopeProviderIMatchScope. May not be null.IMatchScopeProvider.getRightScope()public void applyResourceFilter(IResourceFilter filter)
IResourceFilter to the contained scopes, to reduce them respectively. This
will only have an effect, if this scope provider was instantiated using either a Resource or a
ResourceSet, but not in case an EObject was used.
applyResourceFilter in interface IMatchScopeProviderfilter - the filter to apply to the resources of the left, right and (if provided) ancestor scope.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||