public interface Diff extends EObject
The following features are supported:
ComparePackage.getDiff()
Modifier and Type | Method and Description |
---|---|
void |
copyLeftToRight()
Deprecated.
|
void |
copyRightToLeft()
Deprecated.
|
void |
discard()
This will remove the diff from
the model, effectively "forgetting" about it.
|
Conflict |
getConflict()
Returns the value of the 'Conflict' reference.
|
Equivalence |
getEquivalence()
Returns the value of the 'Equivalence' reference.
|
EList<Diff> |
getImpliedBy()
Returns the value of the 'Implied By' reference list.
|
EList<Diff> |
getImplies()
Returns the value of the 'Implies' reference list.
|
DifferenceKind |
getKind()
Returns the value of the 'Kind' attribute.
|
Match |
getMatch()
Returns the value of the 'Match' container reference.
|
Diff |
getPrimeRefining()
Returns the value of the 'Prime Refining' reference.
|
EList<Diff> |
getRefinedBy()
Returns the value of the 'Refined By' reference list.
|
EList<Diff> |
getRefines()
Returns the value of the 'Refines' reference list.
|
EList<Diff> |
getRequiredBy()
Returns the value of the 'Required By' reference list.
|
EList<Diff> |
getRequires()
Returns the value of the 'Requires' reference list.
|
DifferenceSource |
getSource()
Returns the value of the 'Source' attribute.
|
DifferenceState |
getState()
Returns the value of the 'State' attribute.
|
void |
setConflict(Conflict value)
Sets the value of the '
Conflict ' reference |
void |
setEquivalence(Equivalence value)
Sets the value of the ' Equivalence '
reference.
|
void |
setKind(DifferenceKind value)
Sets the value of the ' Kind ' attribute.
|
void |
setMatch(Match value)
Sets the value of the ' Match ' container
reference.
|
void |
setSource(DifferenceSource value)
Sets the value of the ' Source ' attribute.
|
void |
setState(DifferenceState value)
Sets the value of the ' State ' attribute.
|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
static final String copyright
Match getMatch()
Differences
'. Back-reference towards this
difference's parent match, it points towards the mapping on which this difference has been detected.
setMatch(Match)
,
ComparePackage.getDiff_Match()
,
Match.getDifferences()
void setMatch(Match value)
Match
' container
reference. value
- the new value of the 'Match' container reference.getMatch()
EList<Diff> getRequires()
Diff
. It is bidirectional and its opposite is '
Required By
'. This will reference all differences that should be merged
before this one. ComparePackage.getDiff_Requires()
,
getRequiredBy()
EList<Diff> getRequiredBy()
Diff
. It is bidirectional and its opposite is '
Requires
'. This will reference all differences that depend on this one
for their merging. ComparePackage.getDiff_RequiredBy()
,
getRequires()
EList<Diff> getImplies()
Diff
. It is bidirectional and its opposite is '
Implied By
'.
If the meaning of the 'Implies' reference list isn't clear, there really should be more of a description here...
ComparePackage.getDiff_Implies()
,
getImpliedBy()
EList<Diff> getImpliedBy()
Diff
. It is bidirectional and its opposite is '
Implies
'.
If the meaning of the 'Implied By' reference list isn't clear, there really should be more of a description here...
ComparePackage.getDiff_ImpliedBy()
,
getImplies()
EList<Diff> getRefines()
Diff
. It is bidirectional and its opposite is '
Refined By
'. This can be used to create "high level" differences to
regroup one or more diffs in a common "container". For example, this could be used to regroup n
technical differences into one single semantic difference, such as the differences
"profile application added" and "reference to stereotype added" that can actually be regrouped under a
single, more understandable "stereotype application added". ComparePackage.getDiff_Refines()
,
getRefinedBy()
EList<Diff> getRefinedBy()
Diff
. It is bidirectional and its opposite is '
Refines
'. This will reference the higher-level difference that shadows
this one, if any. ComparePackage.getDiff_RefinedBy()
,
getRefines()
Diff getPrimeRefining()
If the meaning of the 'Prime Refining' reference isn't clear, there really should be more of a description here...
ComparePackage.getDiff_PrimeRefining()
DifferenceKind getKind()
DifferenceKind
. Describes the kind of this difference, whether it is an addition, deletion, change,
or move. DifferenceKind
,
setKind(DifferenceKind)
,
ComparePackage.getDiff_Kind()
void setKind(DifferenceKind value)
Kind
' attribute. value
- the new value of the 'Kind' attribute.DifferenceKind
,
getKind()
Conflict getConflict()
Differences
'.
If this element is in conflict with one (or more) other
differences, this will reference the Conflict association. setConflict(Conflict)
,
ComparePackage.getDiff_Conflict()
,
Conflict.getDifferences()
void setConflict(Conflict value)
Conflict
' reference.
value
- the new value of the 'Conflict' reference.getConflict()
DifferenceSource getSource()
DifferenceSource
. Returns the source of this diff, either one of DifferenceSource.LEFT (for two-way
comparisons or differences detected between the left and origin elements) or DifferenceSource.RIGHT
(for differences between the right and origin elements). DifferenceSource
,
setSource(DifferenceSource)
,
ComparePackage.getDiff_Source()
void setSource(DifferenceSource value)
Source
' attribute. value
- the new value of the 'Source' attribute.DifferenceSource
,
getSource()
DifferenceState getState()
DifferenceState
. Returns the current state of this diff, either one of DifferenceState.UNRESOLVED
(Diff is still in its initial state), DifferenceState.MERGED when the Diff has been merged or
DifferenceState.DISCARDED if the user chose to ignore this difference. DifferenceState
,
setState(DifferenceState)
,
ComparePackage.getDiff_State()
void setState(DifferenceState value)
State
' attribute. value
- the new value of the 'State' attribute.DifferenceState
,
getState()
Equivalence getEquivalence()
Differences
'. If this diff is equivalent to
another, we will reference the equivalence from here. For example, if a reference has an eOpposite, we
will detect one diff for each side of the bidirectional reference, yet merging one of these diffs is
enough. We consider them equivalent. setEquivalence(Equivalence)
,
ComparePackage.getDiff_Equivalence()
,
Equivalence.getDifferences()
void setEquivalence(Equivalence value)
Equivalence
'
reference. value
- the new value of the 'Equivalence' reference.getEquivalence()
@Deprecated void copyRightToLeft()
@Deprecated void copyLeftToRight()
void discard()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.