|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infai.emo.matcher.action.MappingBuilder
class MappingBuilder
Class for building the mapping out of a matching between two models.
Field Summary | |
---|---|
private Matching |
baseMatch
The final matching that serves as the basis for the Mapping. |
private ModelComparator |
comparator
The main class that controls the order of the comparison. |
private MapFactory |
fac
The factory for creating the elements of the mapping. |
Constructor Summary | |
---|---|
MappingBuilder(Matching baseMatch,
ModelComparator comparator)
Initializes a new MappingBuilder with the matching and the comparator. |
Method Summary | |
---|---|
private void |
createConfigurationData(MapFactory fac,
MapModel mapModel)
create the configuration-data for the comparison that will be stored in the model. |
private MappingElement |
createMappingElement(MapFactory fac,
org.eclipse.emf.ecore.EObject leftElement,
org.eclipse.emf.ecore.EObject rightElement,
java.lang.Double matchingValue)
Creates a mapping-element with the given values. |
private NotMappedElement |
createNotMappedElement(MapFactory fac,
org.eclipse.emf.ecore.EObject modelElement,
boolean inleftModel)
Creates a EMF-Element that shows up an element of one of the original models that couldn't be mapped onto another. |
protected MapModel |
getMapping(boolean createConfigurationData)
This method calculates the Mapping between the model-elements and creates an EMF-Model that contains the mapped elements and their matching-values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Matching baseMatch
Matching
private ModelComparator comparator
ModelComparator
private MapFactory fac
MapFactory
Constructor Detail |
---|
MappingBuilder(Matching baseMatch, ModelComparator comparator)
baseMatch
- the basis for the mapping.comparator
- the class that controls the order of comparison.baseMatch
,
comparator
Method Detail |
---|
protected MapModel getMapping(boolean createConfigurationData)
MapModel
private void createConfigurationData(MapFactory fac, MapModel mapModel)
fac
- the factory for creating the model-elements.mapModel
- the model in which the configuration-data shall be stored.MapFactory
,
MapModel
private MappingElement createMappingElement(MapFactory fac, org.eclipse.emf.ecore.EObject leftElement, org.eclipse.emf.ecore.EObject rightElement, java.lang.Double matchingValue)
fac
- the factory for the element-creation.leftElement
- the first oft the mapped elements.rightElement
- the second oft the mapped elements.matchingValue
- the matching-value for both elements.
MapFactory
,
MappingElement
private NotMappedElement createNotMappedElement(MapFactory fac, org.eclipse.emf.ecore.EObject modelElement, boolean inleftModel)
fac
- the factory for the element-creation.modelElement
- the element that couldn't be mapped.inleftModel
- indicates whether the element was detected in the left model or in the right.
MapFactory
,
NotMappedElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |