Package org.eclipse.emf.compare
Interface Match
- All Known Implementing Classes:
MatchImpl
,MatchSpec
,NotLoadedFragmentMatch
A representation of the model object 'Match'.
A MatchElement describes the mapping between the EObjects of two or three resources. This will reference all three of left, right and origin resources. However, note that instances of this class will also represent unmatched elements, in which case only one of either "left" or "right" will be assigned.
The following features are supported:
- See Also:
- Generated:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionFinds and returns all differences contained in this Match and its children, recursively.Finds and returns all matches contained in this Match and its children, recursively.Finds and return the Comparison containing this Match.Returns the value of the 'Differences' containment reference list.getLeft()
Returns the value of the 'Left' reference.Returns the value of the 'Origin' reference.getRight()
Returns the value of the 'Right' reference.Returns the value of the 'Submatches' containment reference list.void
Sets the value of the 'Left
' reference.void
Sets the value of the 'Origin
' reference.void
Sets the value of the 'Right
' reference.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
-
getSubmatches
Returns the value of the 'Submatches' containment reference list. The list contents are of typeMatch
. The MatchElements will "mimic" the hierarchy of the input model(s). This containment feature will serve that purpose.- Returns:
- the value of the 'Submatches' containment reference list.
- See Also:
- Generated:
-
getDifferences
Returns the value of the 'Differences' containment reference list. The list contents are of typeDiff
. This will contain the list of all differences pertaining to this mapping, if any.- Returns:
- the value of the 'Differences' containment reference list.
- See Also:
- Generated:
-
getLeft
EObject getLeft()Returns the value of the 'Left' reference. This can be null in the case of unmatched elements in the right model. In all other cases, it will reference the left element of this mapping.- Returns:
- the value of the 'Left' reference.
- See Also:
- Generated:
-
setLeft
Sets the value of the 'Left
' reference.- Parameters:
value
- the new value of the 'Left' reference.- See Also:
- Generated:
-
getRight
EObject getRight()Returns the value of the 'Right' reference. This can be null in the case of unmatched elements in the left model. In all other cases, it will reference the right element of this mapping.- Returns:
- the value of the 'Right' reference.
- See Also:
- Generated:
-
setRight
Sets the value of the 'Right
' reference.- Parameters:
value
- the new value of the 'Right' reference.- See Also:
- Generated:
-
getOrigin
EObject getOrigin()Returns the value of the 'Origin' reference. This can be null in the case of two-way comparisons, or unmatched elements that are only located in either left or right, i.e an element that was added since the origin, either in the left copy or the right one. In any other course of event, this will reference the origin element of this mapping.- Returns:
- the value of the 'Origin' reference.
- See Also:
- Generated:
-
setOrigin
Sets the value of the 'Origin
' reference.- Parameters:
value
- the new value of the 'Origin' reference.- See Also:
- Generated:
-
getComparison
Comparison getComparison()Finds and return the Comparison containing this Match.- Generated:
-
getAllSubmatches
Finds and returns all matches contained in this Match and its children, recursively.- Generated:
-
getAllDifferences
Finds and returns all differences contained in this Match and its children, recursively.- Generated:
-