Package org.eclipse.emf.compare
Interface Diff
- All Known Subinterfaces:
AttributeChange
,FeatureMapChange
,ReferenceChange
,ResourceAttachmentChange
,ResourceLocationChange
- All Known Implementing Classes:
AttributeChangeImpl
,AttributeChangeSpec
,DiffImpl
,DiffSpec
,FeatureMapChangeImpl
,FeatureMapChangeSpec
,ReferenceChangeImpl
,ReferenceChangeSpec
,ResourceAttachmentChangeImpl
,ResourceAttachmentChangeSpec
,ResourceLocationChangeImpl
,ResourceLocationChangeSpec
A representation of the model object 'Diff'.
A DiffElement describes a difference related to the EObjects mapped by its parent MatchElement.
The following features are supported:
- See Also:
- Generated:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
Deprecated.void
discard()
This will remove the diff from the model, effectively "forgetting" about it.Returns the value of the 'Conflict' reference.Returns the value of the 'Equivalence' reference.Returns the value of the 'Implied By' reference list.Returns the value of the 'Implies' reference list.getKind()
Returns the value of the 'Kind' attribute.getMatch()
Returns the value of the 'Match' container reference.Returns the value of the 'Prime Refining' reference.Returns the value of the 'Refined By' reference list.Returns the value of the 'Refines' reference list.Returns the value of the 'Required By' reference list.Returns the value of the 'Requires' reference list.Returns the value of the 'Source' attribute.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
Sets the value of the 'Match
' reference.void
setSource
(DifferenceSource value) Sets the value of the 'Source
' attribute.void
setState
(DifferenceState value) Sets the value of the 'State
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Field Details
-
copyright
- See Also:
- Generated:
-
-
Method Details
-
getMatch
Match getMatch()Returns the value of the 'Match' container reference. It is bidirectional and its opposite is 'Differences
'. Back-reference towards this difference's parent match, it points towards the mapping on which this difference has been detected.- Returns:
- the value of the 'Match' container reference.
- See Also:
- Generated:
-
setMatch
Sets the value of the 'Match
' reference.- Parameters:
value
- the new value of the 'Match' reference.- See Also:
- Generated:
-
getRequires
Returns the value of the 'Requires' reference list. The list contents are of typeDiff
. It is bidirectional and its opposite is 'Required By
'. This will reference all differences that should be merged before this one.- Returns:
- the value of the 'Requires' reference list.
- See Also:
- Generated:
-
getRequiredBy
Returns the value of the 'Required By' reference list. The list contents are of typeDiff
. It is bidirectional and its opposite is 'Requires
'. This will reference all differences that depend on this one for their merging.- Returns:
- the value of the 'Required By' reference list.
- See Also:
- Generated:
-
getImplies
Returns the value of the 'Implies' reference list. The list contents are of typeDiff
. 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...
- Returns:
- the value of the 'Implies' reference list.
- See Also:
- Generated:
-
getImpliedBy
Returns the value of the 'Implied By' reference list. The list contents are of typeDiff
. 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...
- Returns:
- the value of the 'Implied By' reference list.
- See Also:
- Generated:
-
getRefines
Returns the value of the 'Refines' reference list. The list contents are of typeDiff
. 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".- Returns:
- the value of the 'Refines' reference list.
- See Also:
- Generated:
-
getRefinedBy
Returns the value of the 'Refined By' reference list. The list contents are of typeDiff
. It is bidirectional and its opposite is 'Refines
'. This will reference the higher-level difference that shadows this one, if any.- Returns:
- the value of the 'Refined By' reference list.
- See Also:
- Generated:
-
getPrimeRefining
Diff getPrimeRefining()Returns the value of the 'Prime Refining' reference.If the meaning of the 'Prime Refining' reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Prime Refining' reference.
- See Also:
- Generated:
-
getKind
DifferenceKind getKind()Returns the value of the 'Kind' attribute. The literals are from the enumerationDifferenceKind
. Describes the kind of this difference, whether it is an addition, deletion, change, or move.- Returns:
- the value of the 'Kind' attribute.
- See Also:
- Generated:
-
setKind
Sets the value of the 'Kind
' attribute.- Parameters:
value
- the new value of the 'Kind' attribute.- See Also:
- Generated:
-
getConflict
Conflict getConflict()Returns the value of the 'Conflict' reference. It is bidirectional and its opposite is 'Differences
'. If this element is in conflict with one (or more) other differences, this will reference the Conflict association.- Returns:
- the value of the 'Conflict' reference.
- See Also:
- Generated:
-
setConflict
Sets the value of the 'Conflict
' reference.- Parameters:
value
- the new value of the 'Conflict' reference.- See Also:
- Generated:
-
getSource
DifferenceSource getSource()Returns the value of the 'Source' attribute. The literals are from the enumerationDifferenceSource
. 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).- Returns:
- the value of the 'Source' attribute.
- See Also:
- Generated:
-
setSource
Sets the value of the 'Source
' attribute.- Parameters:
value
- the new value of the 'Source' attribute.- See Also:
- Generated:
-
getState
DifferenceState getState()Returns the value of the 'State' attribute. The literals are from the enumerationDifferenceState
. 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.- Returns:
- the value of the 'State' attribute.
- See Also:
- Generated:
-
setState
Sets the value of the 'State
' attribute.- Parameters:
value
- the new value of the 'State' attribute.- See Also:
- Generated:
-
getEquivalence
Equivalence getEquivalence()Returns the value of the 'Equivalence' reference. It is bidirectional and its opposite is '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.- Returns:
- the value of the 'Equivalence' reference.
- See Also:
- Generated:
-
setEquivalence
Sets the value of the 'Equivalence
' reference.- Parameters:
value
- the new value of the 'Equivalence' reference.- See Also:
- Generated:
-
copyRightToLeft
Deprecated.This will merge the diff from left to right.- Generated:
-
copyLeftToRight
Deprecated.This will merge the diff from right to left.- Generated:
-
discard
void discard()This will remove the diff from the model, effectively "forgetting" about it.- Generated:
-