public final class CompareControls extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
areEqual(VControl left,
org.eclipse.emf.ecore.EObject leftDomainModel,
VControl right,
org.eclipse.emf.ecore.EObject rightDomainModel)
Compares to
VControls . |
static boolean |
areEqual(VDomainModelReference left,
org.eclipse.emf.ecore.EObject leftDomainModel,
VDomainModelReference right,
org.eclipse.emf.ecore.EObject rightDomainModel)
Compares to
VDomainModelReferences by comparing all values. |
static boolean |
areValuesEqual(Object leftValue,
org.eclipse.emf.ecore.EStructuralFeature leftStructuralFeature,
Object rightValue,
org.eclipse.emf.ecore.EStructuralFeature rightStructuralFeature)
Compares two
EStructuralFeatures and their values. |
public static boolean areEqual(VControl left, org.eclipse.emf.ecore.EObject leftDomainModel, VControl right, org.eclipse.emf.ecore.EObject rightDomainModel)
VControls
. This is just a convenience method which delegates to
areEqual(VDomainModelReference,EObject, VDomainModelReference,EObject)
.left
- the first VControl to compareleftDomainModel
- The domain model of the left VControlright
- the second VControl to comparerightDomainModel
- The domain model of the right VControlVDomainModelReferences
are equalpublic static boolean areEqual(VDomainModelReference left, org.eclipse.emf.ecore.EObject leftDomainModel, VDomainModelReference right, org.eclipse.emf.ecore.EObject rightDomainModel)
VDomainModelReferences
by comparing all values.left
- the first VDomainModelReference
leftDomainModel
- The domain model of the left VControlright
- the second VDomainModelReference
rightDomainModel
- The domain model of the right VControlVDomainModelReferences
are equalpublic static boolean areValuesEqual(Object leftValue, org.eclipse.emf.ecore.EStructuralFeature leftStructuralFeature, Object rightValue, org.eclipse.emf.ecore.EStructuralFeature rightStructuralFeature)
EStructuralFeatures
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.leftValue
- the value of the left EStructuralFeature
leftStructuralFeature
- the left EStructuralFeaturerightValue
- the value of the right EStructuralFeaturerightStructuralFeature
- the right EStructuralFeatureCopyright © 2019. All rights reserved.