Class RightsComponentMatcher
java.lang.Object
com._1c.g5.v8.dt.internal.rights.compare.RightsComponentMatcher
- All Implemented Interfaces:
IEmfObjectMatcher
,IObjectMatcher<org.eclipse.emf.ecore.EObject,
MatchedEmfObjects>
A custom matcher for right's components.
-
Constructor Summary
ConstructorsConstructorDescriptionRightsComponentMatcher
(org.eclipse.emf.ecore.EClassifier type) Creates a new matcher forRightsPackage.Literals.RESTRICTION_TEMPLATE
orRightsPackage.Literals.RLS
with the specified matching strategy (by type). -
Method Summary
-
Constructor Details
-
RightsComponentMatcher
public RightsComponentMatcher(org.eclipse.emf.ecore.EClassifier type) Creates a new matcher forRightsPackage.Literals.RESTRICTION_TEMPLATE
orRightsPackage.Literals.RLS
with the specified matching strategy (by type).- Parameters:
type
- theEObject
type for determining the matching strategy, cannot benull
-
-
Method Details
-
match
public Collection<MatchedEmfObjects> match(List<org.eclipse.emf.ecore.EObject> mainObjects, List<org.eclipse.emf.ecore.EObject> otherObjects, List<org.eclipse.emf.ecore.EObject> ancestorObjects) Description copied from interface:IObjectMatcher
Returns a collection of matched objects for the specified collections of objects.- Specified by:
match
in interfaceIObjectMatcher<org.eclipse.emf.ecore.EObject,
MatchedEmfObjects> - Parameters:
mainObjects
- the collection of objects to be matched from the main sideotherObjects
- the collection of objects to be matched from the other sideancestorObjects
- the collection of objects to be matched from the common ancestor side- Returns:
- a collection of matched compared objects with ids
-