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 MdObjectComparisonNodecreateNode(MdObject main, MdObject other, MdObject ancestor) Creates a comparison node for the triple of matched objects.protected StringReturns the name of the matched object.protected StringgetSymlink(MdObject object) Returns the symbolic link of the matched object.protected UUIDReturns 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, notnullparentCollectionNode- the node related to the parent collection where the matching MD objects lie in, cannot benullmainObjects- the main objects to be matched, notnullotherObjects- the other objects to be matched, notnullancestorObjects- the ancestor objects to be matched, may benullin case of two-way comparisonmainResource- the main resource, may benullotherResource- the other resource, may benullancestorResource- the common ancestor resource, may benullqualifiedNameProvider- the qualified name provider for obtaining symbolic links of the matched objects, notnullnodeFactory- the factory to create MD comparison nodes, notnull
-
-
Method Details
-
getName
Description copied from class:AbstractMdObjectMatcherReturns the name of the matched object.- Specified by:
getNamein classAbstractMdObjectMatcher<MdObject>- Returns:
- the name
-
getUuid
Description copied from class:AbstractMdObjectMatcherReturns the UUID of the matched object.- Specified by:
getUuidin classAbstractMdObjectMatcher<MdObject>- Returns:
- the UUID
-
getSymlink
Description copied from class:AbstractMdObjectMatcherReturns the symbolic link of the matched object.- Specified by:
getSymlinkin classAbstractMdObjectMatcher<MdObject>- Returns:
- the symbolic link
-
createNode
Description copied from class:AbstractMdObjectMatcherCreates a comparison node for the triple of matched objects. At least one of objects in the triple must not benull.- Specified by:
createNodein classAbstractMdObjectMatcher<MdObject>- Parameters:
main- the main object, may benullother- the other object, may benullancestor- the common ancestor object, may benull- Returns:
- a new comparison node related to the triple of objects, never
null
-