org.metadiff.ext.tucsdiff
Class EcoreComparingTemplate
java.lang.Object
org.metadiff.ext.tucsdiff.EcoreComparingTemplate
- All Implemented Interfaces:
- ComparingTemplate
- public final class EcoreComparingTemplate
- extends java.lang.Object
- implements ComparingTemplate
- Author:
- Mark Kofman
Method Summary |
java.lang.Object |
clone(java.lang.Object object)
|
java.util.List |
compare(java.lang.Object objectA,
java.lang.Object objectB)
|
private java.util.List |
compareAttribute(org.eclipse.emf.ecore.EObject oldObject,
org.eclipse.emf.ecore.EObject newObject,
org.eclipse.emf.ecore.EAttribute attr)
|
protected java.util.List |
compareFeature(java.lang.Object objectA,
java.lang.Object objectB,
java.lang.Object feature)
|
private java.util.List |
compareReference(org.eclipse.emf.ecore.EObject objectA,
org.eclipse.emf.ecore.EObject objectB,
org.eclipse.emf.ecore.EReference ref)
|
private java.util.List |
compareUnorderedListFeature(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.common.util.EList listA,
org.eclipse.emf.common.util.EList listB,
org.eclipse.emf.ecore.EStructuralFeature feature)
|
private boolean |
containsItem(org.eclipse.emf.common.util.EList list,
java.lang.String uuid)
|
java.util.Map |
createTuplesSet(java.util.List insertedObjects,
java.util.List deletedObjects,
SimpleModelMapping mapping)
|
protected java.util.List |
getAllFeatures(java.lang.Object object)
|
static EcoreComparingTemplate |
getInstance()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static org.apache.log4j.Logger LOG
- Logger object
instance
private static EcoreComparingTemplate instance
EcoreComparingTemplate
private EcoreComparingTemplate()
getInstance
public static EcoreComparingTemplate getInstance()
createTuplesSet
public java.util.Map createTuplesSet(java.util.List insertedObjects,
java.util.List deletedObjects,
SimpleModelMapping mapping)
- Specified by:
createTuplesSet
in interface ComparingTemplate
clone
public java.lang.Object clone(java.lang.Object object)
- Specified by:
clone
in interface ComparingTemplate
compare
public final java.util.List compare(java.lang.Object objectA,
java.lang.Object objectB)
- Specified by:
compare
in interface ComparingTemplate
compareFeature
protected java.util.List compareFeature(java.lang.Object objectA,
java.lang.Object objectB,
java.lang.Object feature)
- Parameters:
feature
-
- Returns:
compareReference
private java.util.List compareReference(org.eclipse.emf.ecore.EObject objectA,
org.eclipse.emf.ecore.EObject objectB,
org.eclipse.emf.ecore.EReference ref)
- Parameters:
ref
-
compareAttribute
private java.util.List compareAttribute(org.eclipse.emf.ecore.EObject oldObject,
org.eclipse.emf.ecore.EObject newObject,
org.eclipse.emf.ecore.EAttribute attr)
- Parameters:
oldObject
- newObject
-
compareUnorderedListFeature
private java.util.List compareUnorderedListFeature(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.common.util.EList listA,
org.eclipse.emf.common.util.EList listB,
org.eclipse.emf.ecore.EStructuralFeature feature)
containsItem
private boolean containsItem(org.eclipse.emf.common.util.EList list,
java.lang.String uuid)
getAllFeatures
protected java.util.List getAllFeatures(java.lang.Object object)