Class ChildMdObjectMatcher
java.lang.Object
com._1c.g5.v8.dt.md.compare.matching.AbstractMdObjectMatcher<MdObject>
com._1c.g5.v8.dt.md.compare.matching.ChildMdObjectMatcher
A matcher of child (contained) MD objects. Also registers them in the specified resources.
-
Constructor Summary
ConstructorsConstructorDescriptionChildMdObjectMatcher
(IComparisonSession session, ChildMdCollectionComparisonNode parentCollectionNode, List<MdObject> mainObjects, List<MdObject> otherObjects, List<MdObject> ancestorObjects, MdObjectResource mainResource, MdObjectResource otherResource, MdObjectResource ancestorResource, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, MdComparisonNodeFactory nodeFactory) Constructs a matcher. -
Method Summary
Modifier and TypeMethodDescriptionprotected MdObjectComparisonNode
createNode
(MdObject main, MdObject other, MdObject ancestor) Creates a comparison node for the triple of matched objects.protected String
Returns the name of the matched object.protected String
getSymlink
(MdObject object) Returns the symbolic link of the matched object.protected UUID
Returns the UUID of the matched object.Methods inherited from class com._1c.g5.v8.dt.md.compare.matching.AbstractMdObjectMatcher
checkOrderChange, getParentCollectionFeature, getSession, match
-
Constructor Details
-
ChildMdObjectMatcher
public ChildMdObjectMatcher(IComparisonSession session, ChildMdCollectionComparisonNode parentCollectionNode, List<MdObject> mainObjects, List<MdObject> otherObjects, List<MdObject> ancestorObjects, MdObjectResource mainResource, MdObjectResource otherResource, MdObjectResource ancestorResource, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, MdComparisonNodeFactory nodeFactory) Constructs a matcher.- Parameters:
session
- the comparison session, notnull
parentCollectionNode
- the node related to the parent collection where the matching MD objects lie in, cannot benull
mainObjects
- the main objects to be matched, notnull
otherObjects
- the other objects to be matched, notnull
ancestorObjects
- the ancestor objects to be matched, may benull
in case of two-way comparisonmainResource
- the main resource, may benull
otherResource
- the other resource, may benull
ancestorResource
- the common ancestor resource, may benull
qualifiedNameProvider
- the qualified name provider for obtaining symbolic links of the matched objects, notnull
nodeFactory
- the factory to create MD comparison nodes, notnull
-
-
Method Details
-
getName
Description copied from class:AbstractMdObjectMatcher
Returns the name of the matched object.- Specified by:
getName
in classAbstractMdObjectMatcher<MdObject>
- Returns:
- the name
-
getUuid
Description copied from class:AbstractMdObjectMatcher
Returns the UUID of the matched object.- Specified by:
getUuid
in classAbstractMdObjectMatcher<MdObject>
- Returns:
- the UUID
-
getSymlink
Description copied from class:AbstractMdObjectMatcher
Returns the symbolic link of the matched object.- Specified by:
getSymlink
in classAbstractMdObjectMatcher<MdObject>
- Returns:
- the symbolic link
-
createNode
Description copied from class:AbstractMdObjectMatcher
Creates a comparison node for the triple of matched objects. At least one of objects in the triple must not benull
.- Specified by:
createNode
in classAbstractMdObjectMatcher<MdObject>
- Parameters:
main
- the main object, may benull
other
- the other object, may benull
ancestor
- the common ancestor object, may benull
- Returns:
- a new comparison node related to the triple of objects, never
null
-