Class TopObjectMatcher
java.lang.Object
com._1c.g5.v8.dt.md.compare.matching.AbstractMdObjectMatcher<TopObjectInfo>
com._1c.g5.v8.dt.md.compare.matching.TopObjectMatcher
A matcher of top MD objects (include child subsystems).
-
Constructor Summary
ConstructorsConstructorDescriptionTopObjectMatcher(IComparisonSession session, TopMdCollectionComparisonNode parentCollectionNode, List<TopObjectInfo> mainObjects, List<TopObjectInfo> otherObjects, List<TopObjectInfo> ancestorObjects, MdComparisonNodeFactory nodeFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanTells whether to check the md objects order change.protected TopMdObjectComparisonNodecreateNode(TopObjectInfo main, TopObjectInfo other, TopObjectInfo ancestor) Creates a comparison node for the triple of matched objects.protected StringgetName(TopObjectInfo object) Returns the name of the matched object.protected StringgetSymlink(TopObjectInfo object) Returns the symbolic link of the matched object.protected UUIDgetUuid(TopObjectInfo object) Returns the UUID of the matched object.Methods inherited from class com._1c.g5.v8.dt.md.compare.matching.AbstractMdObjectMatcher
getParentCollectionFeature, getSession, match
-
Constructor Details
-
TopObjectMatcher
public TopObjectMatcher(IComparisonSession session, TopMdCollectionComparisonNode parentCollectionNode, List<TopObjectInfo> mainObjects, List<TopObjectInfo> otherObjects, List<TopObjectInfo> ancestorObjects, MdComparisonNodeFactory nodeFactory) Creates a new instance.- Parameters:
session- the comparison session, cannot benullparentCollectionNode- the node related to the parent collection where the matching MD objects lie in, may benullif objects don't lie in any collectionmainObjects- the main object infos to be matched, cannot benullotherObjects- the other object infos to be matched, cannot benullancestorObjects- the ancestor object infos to be matched, may benullin case of two-way comparisonnodeFactory- the factory to create MD comparison nodes, cannot benull
-
-
Method Details
-
getName
Description copied from class:AbstractMdObjectMatcherReturns the name of the matched object.- Specified by:
getNamein classAbstractMdObjectMatcher<TopObjectInfo>- Returns:
- the name
-
getUuid
Description copied from class:AbstractMdObjectMatcherReturns the UUID of the matched object.- Specified by:
getUuidin classAbstractMdObjectMatcher<TopObjectInfo>- Returns:
- the UUID
-
getSymlink
Description copied from class:AbstractMdObjectMatcherReturns the symbolic link of the matched object.- Specified by:
getSymlinkin classAbstractMdObjectMatcher<TopObjectInfo>- Returns:
- the symbolic link
-
createNode
protected TopMdObjectComparisonNode createNode(TopObjectInfo main, TopObjectInfo other, TopObjectInfo ancestor) 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<TopObjectInfo>- 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
-
checkOrderChange
protected boolean checkOrderChange()Description copied from class:AbstractMdObjectMatcherTells whether to check the md objects order change.- Overrides:
checkOrderChangein classAbstractMdObjectMatcher<TopObjectInfo>- Returns:
trueif should check the md objects order change,falseotherwise
-