Class PredefinedMdObjectMatcher
- java.lang.Object
- 
- com._1c.g5.v8.dt.compare.matching.AbstractElementsTreeMatcher
- 
- com._1c.g5.v8.dt.md.compare.matching.PredefinedMdObjectMatcher
 
 
- 
- All Implemented Interfaces:
- IElementsTreeMatcher
 
 public class PredefinedMdObjectMatcher extends AbstractElementsTreeMatcher Matcher of predefined elements of md-objects.
- 
- 
Constructor SummaryConstructors Constructor Description PredefinedMdObjectMatcher(IComparisonSession session, MergeRule mergeRule, Predefined main, Predefined other, Predefined ancestor)Creates matcher instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com._1c.g5.v8.dt.md.compare.matching.PredefinedMdObjectMatcher.PredefinedItemIdcreateItemId(org.eclipse.emf.ecore.EObject item)Creates unique identifier of the given item.protected ComparedObjectPathgetRootPath(org.eclipse.emf.ecore.EObject rootItem)Returns the path for the root item.protected voidmatchElements(org.eclipse.emf.ecore.EObject item, ComparedObjectPath itemPath, ComparisonSide side)Matches child items of the given container and puts them by calling#putElement(EObject, ComparisonSide)method.- 
Methods inherited from class com._1c.g5.v8.dt.compare.matching.AbstractElementsTreeMatcherbuildPath, buildPath, createItemId, getMatchedChildren, getMatchedElement, putMatchedElement
 
- 
 
- 
- 
- 
Constructor Detail- 
PredefinedMdObjectMatcherpublic PredefinedMdObjectMatcher(IComparisonSession session, MergeRule mergeRule, Predefined main, Predefined other, Predefined ancestor) Creates matcher instance. At least one of input elements must not benull.- Parameters:
- session- the comparison session, cannot be- null
- mergeRule- the merge rule to apply when merging elements tree, cannot be- null
- main- main element to compare
- other- other element to compare
- ancestor- common ancestor element to compare
 
 
- 
 - 
Method Detail- 
getRootPathprotected ComparedObjectPath getRootPath(org.eclipse.emf.ecore.EObject rootItem) Description copied from class:AbstractElementsTreeMatcherReturns the path for the root item.- Specified by:
- getRootPathin class- AbstractElementsTreeMatcher
- Returns:
- the path built
 
 - 
createItemIdprotected com._1c.g5.v8.dt.md.compare.matching.PredefinedMdObjectMatcher.PredefinedItemId createItemId(org.eclipse.emf.ecore.EObject item) Description copied from class:AbstractElementsTreeMatcherCreates unique identifier of the given item.- Specified by:
- createItemIdin class- AbstractElementsTreeMatcher
- Parameters:
- item- the item for which to create identifier, never- null
- Returns:
- the identifier created, never null
 
 - 
matchElementsprotected void matchElements(org.eclipse.emf.ecore.EObject item, ComparedObjectPath itemPath, ComparisonSide side)Description copied from class:AbstractElementsTreeMatcherMatches child items of the given container and puts them by calling#putElement(EObject, ComparisonSide)method.- Specified by:
- matchElementsin class- AbstractElementsTreeMatcher
- Parameters:
- item- the container to match
- itemPath- the path for the container, never- null
- side- the comparison side, never- null
 
 
- 
 
-