public class EObjectComparator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EObjectComparator.DiffPathElement
Represent element in difference path
|
static interface |
EObjectComparator.Result
Result of EObject comparison
|
Modifier and Type | Field and Description |
---|---|
protected static EObjectComparator.Result |
DefaultDiff |
protected static EObjectComparator.DiffPathElement[] |
emptyPath |
protected static EObjectComparator.Result |
NoDiff |
protected EObjectComparator.Result |
result |
protected java.util.Stack<EObjectComparator.DiffPathElement> |
stack |
Constructor and Description |
---|
EObjectComparator(Delta d1,
Delta d2) |
Modifier and Type | Method and Description |
---|---|
EObjectComparator.Result |
compare(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2)
Compare structure of two EObjects
|
protected boolean |
diffFound() |
protected static java.lang.String |
getEFeatureDescription(org.eclipse.emf.ecore.EStructuralFeature feature) |
protected java.util.List<java.lang.String> |
getIDsFromReference(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference reference) |
protected static java.lang.String |
getObjectDescription(java.lang.Object obj) |
protected java.util.List<org.eclipse.emf.ecore.EObject> |
getValue(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference reference) |
protected static java.lang.String |
makeDescription(EObjectComparator.Result result) |
protected void |
makeDiff() |
protected void |
matchAttribute(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2,
org.eclipse.emf.ecore.EAttribute feature) |
protected void |
matchContainment(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2,
org.eclipse.emf.ecore.EReference feature) |
protected void |
matchEObjectLists(java.util.List<org.eclipse.emf.ecore.EObject> l1,
java.util.List<org.eclipse.emf.ecore.EObject> l2) |
protected void |
matchEObjects(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2)
Match content of EObjects
|
protected void |
matchFeature(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2,
org.eclipse.emf.ecore.EStructuralFeature feature)
Match content of given feature for two EObjects
|
protected void |
matchFeatureMaps(org.eclipse.emf.ecore.util.FeatureMap featureMap1,
org.eclipse.emf.ecore.util.FeatureMap featureMap2) |
protected void |
matchMapValues(java.lang.Object value1,
java.lang.Object value2,
org.eclipse.emf.ecore.EStructuralFeature feature) |
protected void |
matchNonContainment(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2,
org.eclipse.emf.ecore.EReference feature) |
protected static boolean |
matchProxies(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2) |
protected void |
matchReference(org.eclipse.emf.ecore.EObject e1,
org.eclipse.emf.ecore.EObject e2,
org.eclipse.emf.ecore.EReference feature) |
protected static boolean |
matchURI(org.eclipse.emf.common.util.URI uri1,
org.eclipse.emf.common.util.URI uri2) |
protected static java.lang.String |
trimQuery(org.eclipse.emf.common.util.URI uri) |
protected static final EObjectComparator.DiffPathElement[] emptyPath
protected static final EObjectComparator.Result NoDiff
protected static final EObjectComparator.Result DefaultDiff
protected java.util.Stack<EObjectComparator.DiffPathElement> stack
protected EObjectComparator.Result result
public EObjectComparator.Result compare(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2)
e1
- e2
- protected boolean diffFound()
protected void matchEObjects(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2)
e1
- e2
- protected void matchFeature(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2, org.eclipse.emf.ecore.EStructuralFeature feature)
e1
- e2
- feature
- protected void matchAttribute(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2, org.eclipse.emf.ecore.EAttribute feature)
protected void matchFeatureMaps(org.eclipse.emf.ecore.util.FeatureMap featureMap1, org.eclipse.emf.ecore.util.FeatureMap featureMap2)
protected void matchMapValues(java.lang.Object value1, java.lang.Object value2, org.eclipse.emf.ecore.EStructuralFeature feature)
protected void matchReference(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2, org.eclipse.emf.ecore.EReference feature)
protected void matchNonContainment(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2, org.eclipse.emf.ecore.EReference feature)
protected void matchContainment(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2, org.eclipse.emf.ecore.EReference feature)
protected void matchEObjectLists(java.util.List<org.eclipse.emf.ecore.EObject> l1, java.util.List<org.eclipse.emf.ecore.EObject> l2)
protected static boolean matchProxies(org.eclipse.emf.ecore.EObject e1, org.eclipse.emf.ecore.EObject e2)
protected static java.lang.String trimQuery(org.eclipse.emf.common.util.URI uri)
protected static boolean matchURI(org.eclipse.emf.common.util.URI uri1, org.eclipse.emf.common.util.URI uri2)
protected void makeDiff()
protected java.util.List<java.lang.String> getIDsFromReference(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference reference)
protected java.util.List<org.eclipse.emf.ecore.EObject> getValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference reference)
protected static java.lang.String makeDescription(EObjectComparator.Result result)
protected static java.lang.String getObjectDescription(java.lang.Object obj)
protected static java.lang.String getEFeatureDescription(org.eclipse.emf.ecore.EStructuralFeature feature)