| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infai.emo.matcher.action.DiffBuilder
class DiffBuilder
Class for building an EMF-based difference model.
| Field Summary | |
|---|---|
| private  DiffModel | diffModelThe EMF-Model that contains the differences between both models. | 
| private  MapModel | mapModelThe mapping created by the MappingBuilder. | 
| Constructor Summary | |
|---|---|
| protected  | DiffBuilder(MapModel mapModel)Constructor for instantiating a new DiffBuilder with the mapping that is shall compute. | 
| Method Summary | |
|---|---|
| private  void | attributeChanged(java.util.HashMap<java.lang.Integer,Group> groupObjects,
                 MappingElement e)Method calculates if attributes of the elements have changed. | 
| private  void | elementMoved(java.util.HashMap<java.lang.Integer,Group> groupObjects,
             MappingElement e)Method detects changes of the element-positions. | 
| private  void | getAddRemoveElements(java.util.HashMap<java.lang.Integer,Group> groupObjects)Method calculates which elements were added to or removed from the original model. | 
| private  void | getChangedElements(java.util.HashMap<java.lang.Integer,Group> groupObjects)Method calculates which elements are contained in both models but have changed. | 
| protected  DiffModel | getDiff()Calculate the differences between both models. | 
| private  void | referenceChanged(java.util.HashMap<java.lang.Integer,Group> groupObjects,
                 MappingElement e)Method calculates if references of the elements have changed. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private MapModel mapModel
MapModel, 
MappingBuilder#getMapping()private DiffModel diffModel
DiffModel| Constructor Detail | 
|---|
protected DiffBuilder(MapModel mapModel)
mapModel - the mapping out of which the diff will be built.| Method Detail | 
|---|
protected DiffModel getDiff()
DiffModelprivate void getAddRemoveElements(java.util.HashMap<java.lang.Integer,Group> groupObjects)
groupObjects - the HashMap that contains the groups for the changes.private void getChangedElements(java.util.HashMap<java.lang.Integer,Group> groupObjects)
groupObjects - the HashMap that contains the groups for the changes.
private void attributeChanged(java.util.HashMap<java.lang.Integer,Group> groupObjects,
                              MappingElement e)
groupObjects - the HashMap that contains the groups for the changes.e - the MappingElement that contains both model-elements
private void referenceChanged(java.util.HashMap<java.lang.Integer,Group> groupObjects,
                              MappingElement e)
groupObjects - the HashMap that contains the groups for the changes.e - the MappingElement that contains both model-elements
private void elementMoved(java.util.HashMap<java.lang.Integer,Group> groupObjects,
                          MappingElement e)
groupObjects - the HashMap that contains the groups for the changes.e - the MappingElement that contains both model-elements| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||