Package org.eclipse.emf.compare
Class EMFCompare.Builder
java.lang.Object
org.eclipse.emf.compare.EMFCompare.Builder
- Enclosing class:
- EMFCompare
A Builder pattern to instantiate EMFCompare objects.
-
Field Summary
Modifier and TypeFieldDescriptionprotected IConflictDetector
The IConflictDetector to use to compute conflicts.protected IDiffEngine
The IDiffEngine to use to compute comparison.protected IEquiEngine
The IEquiEngine to use to compute comparison.protected IMatchEngine.Factory.Registry
The registry we'll use to create a match engine for this comparison.protected IPostProcessor.Descriptor.Registry<?>
The PostProcessorRegistry to use to find an IPostProcessor.protected IReqEngine
The IReqEngine to use to compute comparison. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Instantiates and return an EMFCompare object configured with the previously given engines.Sets the IEquiEngine to be used to compute conflicts between Diff.Sets the IDiffEngine to be used to compute Diff.Sets the IEquiEngine to be used to compute equivalences between Diff.Sets the IMatchEngine.Factory.Registry to be used to find a match engine factory to compute comparison.Sets the PostProcessor to be used to find the post processor of each comparison steps.Sets the IReqEngine to be used to compute dependencies between Diff.
-
Field Details
-
matchEngineFactoryRegistry
The registry we'll use to create a match engine for this comparison. -
reqEngine
The IReqEngine to use to compute comparison. -
diffEngine
The IDiffEngine to use to compute comparison. -
equiEngine
The IEquiEngine to use to compute comparison. -
conflictDetector
The IConflictDetector to use to compute conflicts. -
registry
The PostProcessorRegistry to use to find an IPostProcessor.
-
-
Constructor Details
-
Builder
protected Builder()Creates a new builder object.
-
-
Method Details
-
setMatchEngineFactoryRegistry
Sets the IMatchEngine.Factory.Registry to be used to find a match engine factory to compute comparison.- Parameters:
mefr
- the IMatchEngine.Factory.Registry to be used to find a match engine factory to compute comparison.- Returns:
- this same builder to allow chained call.
-
setDiffEngine
Sets the IDiffEngine to be used to compute Diff.- Parameters:
de
- the IDiffEngine to be used to compute Diff.- Returns:
- this same builder to allow chained call.
-
setRequirementEngine
Sets the IReqEngine to be used to compute dependencies between Diff.- Parameters:
re
- the IReqEngine to be used to compute dependencies between Diff.- Returns:
- this same builder to allow chained call.
-
setEquivalenceEngine
Sets the IEquiEngine to be used to compute equivalences between Diff.- Parameters:
ee
- the IEquiEngine to be used to compute equivalences between Diff- Returns:
- this same builder to allow chained call.
-
setConflictDetector
Sets the IEquiEngine to be used to compute conflicts between Diff.- Parameters:
cd
- the IEquiEngine to be used to compute conflicts between Diff.- Returns:
- this same builder to allow chained call.
-
setPostProcessorRegistry
Sets the PostProcessor to be used to find the post processor of each comparison steps.- Parameters:
r
- the PostProcessor to be used to find the post processor of each comparison steps.- Returns:
- this same builder to allow chained call.
-
build
Instantiates and return an EMFCompare object configured with the previously given engines.- Returns:
- an EMFCompare object configured with the previously given engines
-