|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.compare.match.service.MatchService
public final class MatchService
Service facade for matching models.
| Method Summary | |
|---|---|
static MatchModel |
doContentMatch(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject,
org.eclipse.emf.ecore.EObject ancestor,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches three objects along with their content, then return the corresponding match model. |
static MatchModel |
doContentMatch(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches two objects along with their content, then return the corresponding match model. |
static MatchModel |
doMatch(org.eclipse.emf.ecore.EObject leftRoot,
org.eclipse.emf.ecore.EObject rightRoot,
org.eclipse.emf.ecore.EObject ancestor,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches three models and returns the corresponding matching model. |
static MatchModel |
doMatch(org.eclipse.emf.ecore.EObject leftRoot,
org.eclipse.emf.ecore.EObject rightRoot,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches two models and returns the corresponding matching model. |
static MatchModel |
doResourceMatch(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches two resources along with their content, then return the corresponding match model. |
static MatchModel |
doResourceMatch(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
org.eclipse.emf.ecore.resource.Resource ancestorResource,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches three resources and returns the corresponding matching model. |
static MatchResourceSet |
doResourceSetMatch(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches the resources contained by two resourceSets and return all corresponding MatchModels. |
static MatchResourceSet |
doResourceSetMatch(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet ancestorResourceSet,
java.util.Map<java.lang.String,java.lang.Object> options)
Matches the resources contained by three resourceSets and return all corresponding MatchModels. |
static org.eclipse.emf.ecore.resource.Resource |
findMatchingResource(org.eclipse.emf.ecore.resource.Resource resource,
java.util.List<org.eclipse.emf.ecore.resource.Resource> candidates)
This will try and find a resource in candidates similar to resource. |
static IMatchEngine |
getBestMatchEngine(org.eclipse.emf.ecore.resource.Resource... resources)
Returns the best IMatchEngine for a given list of Resource to compare. |
static IMatchEngine |
getBestMatchEngine(java.lang.String engineIdentifier)
Deprecated. use getBestMatchEngine(Resource...) instead |
static void |
setMatchEngineSelector(IMatchEngineSelector selector)
Sets the match engine selector that is to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MatchModel doContentMatch(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject,
org.eclipse.emf.ecore.EObject ancestor,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftObject - Left (local) of the three objects to get compared.rightObject - Right (latest from repository) of the three objects to compare.ancestor - Common ancestor of the two others.options - Options to tweak the matching procedure. null or an empty map will result in
the default options to be used.
MatchModel for these three objects' comparison.
java.lang.InterruptedException - Thrown if the matching is interrupted somehow.MatchOptions,
IMatchEngine.contentMatch(EObject, EObject, EObject, Map)
public static MatchModel doContentMatch(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftObject - Left (local) of the two objects to get compared.rightObject - Right (latest from repository) of the two objects to compare.options - Options to tweak the matching procedure. null or an empty map will result in
the default options to be used.
MatchModel for these two objects' comparison.
java.lang.InterruptedException - Thrown if the matching is interrupted somehow.MatchOptions,
IMatchEngine.contentMatch(EObject, EObject, Map)
public static MatchModel doMatch(org.eclipse.emf.ecore.EObject leftRoot,
org.eclipse.emf.ecore.EObject rightRoot,
org.eclipse.emf.ecore.EObject ancestor,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftRoot - Left (local) model of this comparison.rightRoot - Right (latest from repository) model of this comparison.ancestor - Common ancestor of leftRoot and rightRoot.options - Options to tweak the matching procedure. null or an empty map will result in
the default options to be used.
java.lang.InterruptedException - Thrown if the matching is interrupted somehow.MatchOptions
public static MatchModel doMatch(org.eclipse.emf.ecore.EObject leftRoot,
org.eclipse.emf.ecore.EObject rightRoot,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftRoot - Left (local) model of the comparison.rightRoot - Right (latest from repository) model of the comparison.options - Options to tweak the matching procedure. null or an empty map will result in
the default options to be used.
java.lang.InterruptedException - Thrown if the matching is interrupted somehow.MatchOptions
public static MatchModel doResourceMatch(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftResource - Left (local) of the two resources to get compared.rightResource - Right (latest from repository) of the two resources to compare.options - Options to tweak the matching procedure. null or an empty map will result in
the default options to be used.
MatchModel for these two resources' comparison.
java.lang.InterruptedException - Thrown if the matching is interrupted somehow.MatchOptions,
IMatchEngine.contentMatch(EObject, EObject, Map)
public static MatchModel doResourceMatch(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
org.eclipse.emf.ecore.resource.Resource ancestorResource,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftResource - Left (local) resource of this comparison.rightResource - Right (latest from repository) resource of this comparison.ancestorResource - Common ancestor of leftResource and rightResource.options - Options to tweak the matching procedure. null or an empty map will result in
the default options to be used.
java.lang.InterruptedException - Thrown if the matching is interrupted somehow.MatchOptions
public static MatchResourceSet doResourceSetMatch(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftResourceSet - ResourceSet of the left compared Resource.rightResourceSet - ResourceSet of the right compared Resource.options - Options to tweak the matching procedure. null or
Collections.EMPTY_MAP will result in the default options to be used.
MatchResourceSet containing all corresponding MatchModels.
java.lang.InterruptedException - Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
public static MatchResourceSet doResourceSetMatch(org.eclipse.emf.ecore.resource.ResourceSet leftResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet rightResourceSet,
org.eclipse.emf.ecore.resource.ResourceSet ancestorResourceSet,
java.util.Map<java.lang.String,java.lang.Object> options)
throws java.lang.InterruptedException
leftResourceSet - ResourceSet of the left compared Resource.rightResourceSet - ResourceSet of the right compared Resource.ancestorResourceSet - resourceSet containing the common ancestor of the two compared resources.options - Options to tweak the matching procedure. null or
Collections.EMPTY_MAP will result in the default options to be used.
MatchResourceSet containing all corresponding MatchModels.
java.lang.InterruptedException - Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
public static org.eclipse.emf.ecore.resource.Resource findMatchingResource(org.eclipse.emf.ecore.resource.Resource resource,
java.util.List<org.eclipse.emf.ecore.resource.Resource> candidates)
candidates similar to resource.
resource - The resource we seek a similar to in the given resourceSet.candidates - candidate resources.
resource we could find in resourceSet.public static IMatchEngine getBestMatchEngine(org.eclipse.emf.ecore.resource.Resource... resources)
IMatchEngine for a given list of Resource to compare.
resources - The list of Resource to compare.
IMatchEngine for the given list of Resource@Deprecated public static IMatchEngine getBestMatchEngine(java.lang.String engineIdentifier)
getBestMatchEngine(Resource...) instead
IMatchEngine for a file given its extension.
engineIdentifier - An engine identifier to search on the registered IMatchEngine.IMatchEngine for the given engine identifier.public static void setMatchEngineSelector(IMatchEngineSelector selector)
selector - the new engine selector.
|
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 | |||||||||