Class TopObjectMatcher
- java.lang.Object
-
- com._1c.g5.v8.dt.md.compare.matching.AbstractMdObjectMatcher<TopObjectInfo>
-
- com._1c.g5.v8.dt.md.compare.matching.TopObjectMatcher
-
public class TopObjectMatcher extends AbstractMdObjectMatcher<TopObjectInfo>
A matcher of top MD objects (include child subsystems).
-
-
Constructor Summary
Constructors Constructor Description TopObjectMatcher(IComparisonSession session, TopMdCollectionComparisonNode parentCollectionNode, List<TopObjectInfo> mainObjects, List<TopObjectInfo> otherObjects, List<TopObjectInfo> ancestorObjects, com._1c.g5.v8.dt.internal.md.compare.MdComparisonNodeFactory nodeFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckOrderChange()Tells 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 Detail
-
TopObjectMatcher
public TopObjectMatcher(IComparisonSession session, TopMdCollectionComparisonNode parentCollectionNode, List<TopObjectInfo> mainObjects, List<TopObjectInfo> otherObjects, List<TopObjectInfo> ancestorObjects, com._1c.g5.v8.dt.internal.md.compare.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 Detail
-
getName
protected String getName(TopObjectInfo object)
Description copied from class:AbstractMdObjectMatcherReturns the name of the matched object.- Specified by:
getNamein classAbstractMdObjectMatcher<TopObjectInfo>- Returns:
- the name
-
getUuid
protected UUID getUuid(TopObjectInfo object)
Description copied from class:AbstractMdObjectMatcherReturns the UUID of the matched object.- Specified by:
getUuidin classAbstractMdObjectMatcher<TopObjectInfo>- Returns:
- the UUID
-
getSymlink
protected String getSymlink(TopObjectInfo object)
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
-
-