Class RecursiveFeatureMultiMatcher
java.lang.Object
com._1c.g5.v8.dt.compare.matching.AbstractIdBasedObjectMatcher<T,U>
com._1c.g5.v8.dt.compare.matching.AbstractMultiObjectMatcher<org.eclipse.emf.ecore.EObject,MatchedEmfObjects>
com._1c.g5.v8.dt.compare.matching.AbstractMultiEmfObjectMatcher
com._1c.g5.v8.dt.compare.matching.RecursiveFeatureMultiMatcher
- All Implemented Interfaces:
IEmfObjectMatcher
,IObjectMatcher<org.eclipse.emf.ecore.EObject,
MatchedEmfObjects>
A multi matcher based on features which are interpreted as the identifier of the object and called for object
recursively.
-
Constructor Summary
ConstructorsConstructorDescriptionRecursiveFeatureMultiMatcher
(List<org.eclipse.emf.ecore.EStructuralFeature> features) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getId
(org.eclipse.emf.ecore.EObject eObject, ComparisonSide side) For the specified compared object returns its identifier.Methods inherited from class com._1c.g5.v8.dt.compare.matching.AbstractMultiEmfObjectMatcher
createComparedObjectsInstance
Methods inherited from class com._1c.g5.v8.dt.compare.matching.AbstractMultiObjectMatcher
match
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.dt.compare.matching.IObjectMatcher
match
-
Constructor Details
-
RecursiveFeatureMultiMatcher
Creates a new instance.- Parameters:
features
- the feature list to match objects by recursively, all features (except last one) should be single and its type should beEClass
, cannot benull
-
-
Method Details
-
getId
Description copied from class:AbstractIdBasedObjectMatcher
For the specified compared object returns its identifier.- Specified by:
getId
in classAbstractIdBasedObjectMatcher<org.eclipse.emf.ecore.EObject,
MatchedEmfObjects> - Parameters:
eObject
- the compared object to get an identifier of its side for, cannot benull
side
- the side of the compared object, cannot benull
- Returns:
- identifier or
null
if the side is empty
-