Class CompareControls
- java.lang.Object
-
- org.eclipse.emf.ecp.diffmerge.internal.context.CompareControls
-
public final class CompareControls extends java.lang.Object
Class to compare Controls for equality.- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areEqual(VControl left, org.eclipse.emf.ecore.EObject leftDomainModel, VControl right, org.eclipse.emf.ecore.EObject rightDomainModel)
Compares toVControls
.static boolean
areEqual(VDomainModelReference left, org.eclipse.emf.ecore.EObject leftDomainModel, VDomainModelReference right, org.eclipse.emf.ecore.EObject rightDomainModel)
Compares toVDomainModelReferences
by comparing all values.static boolean
areValuesEqual(java.lang.Object leftValue, org.eclipse.emf.ecore.EStructuralFeature leftStructuralFeature, java.lang.Object rightValue, org.eclipse.emf.ecore.EStructuralFeature rightStructuralFeature)
Compares twoEStructuralFeatures
and their values.
-
-
-
Method Detail
-
areEqual
public static boolean areEqual(VControl left, org.eclipse.emf.ecore.EObject leftDomainModel, VControl right, org.eclipse.emf.ecore.EObject rightDomainModel)
Compares toVControls
. This is just a convenience method which delegates toareEqual(VDomainModelReference,EObject, VDomainModelReference,EObject)
.- Parameters:
left
- the first VControl to compareleftDomainModel
- The domain model of the left VControlright
- the second VControl to comparerightDomainModel
- The domain model of the right VControl- Returns:
- true if all values of the
VDomainModelReferences
are equal
-
areEqual
public static boolean areEqual(VDomainModelReference left, org.eclipse.emf.ecore.EObject leftDomainModel, VDomainModelReference right, org.eclipse.emf.ecore.EObject rightDomainModel)
Compares toVDomainModelReferences
by comparing all values.- Parameters:
left
- the firstVDomainModelReference
leftDomainModel
- The domain model of the left VControlright
- the secondVDomainModelReference
rightDomainModel
- The domain model of the right VControl- Returns:
- true if all values of the
VDomainModelReferences
are equal
-
areValuesEqual
public static boolean areValuesEqual(java.lang.Object leftValue, org.eclipse.emf.ecore.EStructuralFeature leftStructuralFeature, java.lang.Object rightValue, org.eclipse.emf.ecore.EStructuralFeature rightStructuralFeature)
Compares twoEStructuralFeatures
and their values. If both are null, they are equal. For a single reference, the referenced EObjects are compare (equals). For a "many" references, a list entries are compared.- Parameters:
leftValue
- the value of the leftEStructuralFeature
leftStructuralFeature
- the left EStructuralFeaturerightValue
- the value of the right EStructuralFeaturerightStructuralFeature
- the right EStructuralFeature- Returns:
- whether the values are equal
-
-