|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMatchEngine
A Match Engine is responsible for returning a match model from a set of models. The resulting match model is then used to create a diff between the two models.
Method Summary | |
---|---|
MatchModel |
contentMatch(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> optionMap)
This method will compare three EObject s and their direct content, ignoring the given objects'
siblings and parents for the match. |
MatchModel |
contentMatch(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightRoot,
java.util.Map<java.lang.String,java.lang.Object> optionMap)
This method will compare two EObject s and their direct content, ignoring the given objects'
siblings and parents for the match. |
MatchModel |
modelMatch(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> optionMap)
This method returns a MatchModel for three models. |
MatchModel |
modelMatch(org.eclipse.emf.ecore.EObject leftRoot,
org.eclipse.emf.ecore.EObject rightRoot,
java.util.Map<java.lang.String,java.lang.Object> optionMap)
This method returns a MatchModel for two models. |
void |
reset()
This will be called with each access from the service to the singleton instance of this engine. |
MatchModel |
resourceMatch(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource,
java.util.Map<java.lang.String,java.lang.Object> optionMap)
This method returns a MatchModel for two resources. |
MatchModel |
resourceMatch(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> optionMap)
This method returns a MatchModel for three resources. |
Method Detail |
---|
MatchModel contentMatch(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> optionMap) throws java.lang.InterruptedException
EObject
s and their direct content, ignoring the given objects'
siblings and parents for the match.
leftObject
- Left of the three objects to get compared.rightObject
- Right of the three objects to compare.ancestor
- Common ancestor of the two others.optionMap
- Options to tweak the matching procedure. null
or
Collections.EMPTY_MAP
will result in the default options to be used.
MatchModel
for these three objects' comparison.
java.lang.InterruptedException
- Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
MatchModel contentMatch(org.eclipse.emf.ecore.EObject leftObject, org.eclipse.emf.ecore.EObject rightRoot, java.util.Map<java.lang.String,java.lang.Object> optionMap) throws java.lang.InterruptedException
EObject
s and their direct content, ignoring the given objects'
siblings and parents for the match.
leftObject
- Left of the two objects to get compared.rightRoot
- Right of the two objects to compare.optionMap
- Options to tweak the matching procedure. null
or
Collections.EMPTY_MAP
will result in the default options to be used.
MatchModel
for these two objects' comparison.
java.lang.InterruptedException
- Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
MatchModel modelMatch(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> optionMap) throws java.lang.InterruptedException
leftRoot
- Left model for the comparison.rightRoot
- Right model for the comparison.ancestor
- Common ancestor of the right and left models.optionMap
- Options to tweak the matching procedure. null
or
Collections.EMPTY_MAP
will result in the default options to be used.
MatchModel
.
java.lang.InterruptedException
- Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
MatchModel modelMatch(org.eclipse.emf.ecore.EObject leftRoot, org.eclipse.emf.ecore.EObject rightRoot, java.util.Map<java.lang.String,java.lang.Object> optionMap) throws java.lang.InterruptedException
leftRoot
- Left model for the comparison.rightRoot
- Right model for the comparison.optionMap
- Options to tweak the matching procedure. null
or
Collections.EMPTY_MAP
will result in the default options to be used.
MatchModel
.
java.lang.InterruptedException
- Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
void reset()
MatchModel resourceMatch(org.eclipse.emf.ecore.resource.Resource leftResource, org.eclipse.emf.ecore.resource.Resource rightResource, java.util.Map<java.lang.String,java.lang.Object> optionMap) throws java.lang.InterruptedException
leftResource
- Left compared resource.rightResource
- Right compared resource.optionMap
- Options to tweak the matching procedure. null
or
Collections.EMPTY_MAP
will result in the default options to be used.
MatchModel
.
java.lang.InterruptedException
- Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
MatchModel resourceMatch(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> optionMap) throws java.lang.InterruptedException
leftResource
- Left compared resource.rightResource
- Right compared resource.ancestorResource
- Common ancestor of the two compared resources.optionMap
- Options to tweak the matching procedure. null
or
Collections.EMPTY_MAP
will result in the default options to be used.
MatchModel
.
java.lang.InterruptedException
- Thrown if the options map specifies a progress monitor, and the comparison gets interrupted
somehow.MatchOptions
|
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 |