Interface IElementsTreeMatcher
-
- All Known Implementing Classes:
AbstractElementsTreeMatcher
,PredefinedMdObjectMatcher
public interface IElementsTreeMatcher
Matcher of trees with elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<MatchedEmfObjects>
getMatchedChildren(org.eclipse.emf.ecore.EObject main, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EObject ancestor)
Returns children (without sub-children) of the given elements in a result matched tree.MatchedEmfObjects
getMatchedElement(org.eclipse.emf.ecore.EObject forElement)
Returns matched compared element for the given input element.
-
-
-
Method Detail
-
getMatchedElement
MatchedEmfObjects getMatchedElement(org.eclipse.emf.ecore.EObject forElement)
Returns matched compared element for the given input element.- Parameters:
forElement
- the element from any of trees (main/other/ancestor) for which to get the compared element- Returns:
- compared element found or
null
if the given input element is not matched
-
getMatchedChildren
List<MatchedEmfObjects> getMatchedChildren(org.eclipse.emf.ecore.EObject main, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EObject ancestor)
Returns children (without sub-children) of the given elements in a result matched tree.- Parameters:
main
- comparing element in main treeother
- comparing element in other treeancestor
- comparing element in ancestor ancestor- Returns:
- list of children in a matched tree, can be empty, never
null
-
-