public final class MatchUtil extends Object
Modifier and Type | Method and Description |
---|---|
static EObject |
getContainer(Comparison comparison,
Diff difference)
Get the business model object containing the given
difference . |
static EObject |
getOriginContainer(Comparison comparison,
Diff difference)
Get the business model object containing the given
difference in the origin side. |
static EObject |
getOriginObject(Comparison comparison,
EObject object)
Get the object which is the origin value from the given matching
object . |
static EObject |
getOriginValue(Comparison comparison,
ReferenceChange difference)
From a given mono-valued reference change, get the origin value.
|
static EStructuralFeature |
getStructuralFeature(Diff input)
Get the structural feature of any difference.
|
static Object |
getValue(Diff input)
Get the value of any difference.
|
public static EObject getOriginObject(Comparison comparison, EObject object)
object
.comparison
- The comparison.object
- The given object.public static EObject getOriginValue(Comparison comparison, ReferenceChange difference)
comparison
- The comparison.difference
- The given reference change.public static EObject getOriginContainer(Comparison comparison, Diff difference)
difference
in the origin side.comparison
- The comparison.difference
- The difference.public static EObject getContainer(Comparison comparison, Diff difference)
difference
.comparison
- The comparison.difference
- The difference.public static Object getValue(Diff input)
input
- The difference.public static EStructuralFeature getStructuralFeature(Diff input)
input
- The difference.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.