public interface IMatchEngine
We generally expect that a call to #match(IComparisonScope)
will return us every single
matches
that can be determined from the given
context
. This includes all three of :
Clients can subclass the default implementation
when all that is needed is to
change the matching strategy.
DefaultMatchEngine
Modifier and Type | Interface and Description |
---|---|
static interface |
IMatchEngine.Factory
Wrapper describing the given match engine.
|
Modifier and Type | Method and Description |
---|---|
Comparison |
match(IComparisonScope scope,
Monitor monitor)
This is the entry point of a Comparison process.
|
Comparison match(IComparisonScope scope, Monitor monitor)
The returned Comparison should include both matched an unmatched objects. It is not the match engine's responsibility to determine differences between objects, only to match them together.
scope
- The comparison scope that should be used by this engine to determine the objects to match.monitor
- The monitor to report progress or to check for cancellationComparison
model with all matches determined.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.