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 boolean
checkOrderChange()
Tells whether to check the md objects order change.protected TopMdObjectComparisonNode
createNode(TopObjectInfo main, TopObjectInfo other, TopObjectInfo ancestor)
Creates a comparison node for the triple of matched objects.protected String
getName(TopObjectInfo object)
Returns the name of the matched object.protected String
getSymlink(TopObjectInfo object)
Returns the symbolic link of the matched object.protected UUID
getUuid(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 benull
parentCollectionNode
- the node related to the parent collection where the matching MD objects lie in, may benull
if objects don't lie in any collectionmainObjects
- the main object infos to be matched, cannot benull
otherObjects
- the other object infos to be matched, cannot benull
ancestorObjects
- the ancestor object infos to be matched, may benull
in 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:AbstractMdObjectMatcher
Returns the name of the matched object.- Specified by:
getName
in classAbstractMdObjectMatcher<TopObjectInfo>
- Returns:
- the name
-
getUuid
protected UUID getUuid(TopObjectInfo object)
Description copied from class:AbstractMdObjectMatcher
Returns the UUID of the matched object.- Specified by:
getUuid
in classAbstractMdObjectMatcher<TopObjectInfo>
- Returns:
- the UUID
-
getSymlink
protected String getSymlink(TopObjectInfo object)
Description copied from class:AbstractMdObjectMatcher
Returns the symbolic link of the matched object.- Specified by:
getSymlink
in classAbstractMdObjectMatcher<TopObjectInfo>
- Returns:
- the symbolic link
-
createNode
protected TopMdObjectComparisonNode createNode(TopObjectInfo main, TopObjectInfo other, TopObjectInfo ancestor)
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<TopObjectInfo>
- 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
-
checkOrderChange
protected boolean checkOrderChange()
Description copied from class:AbstractMdObjectMatcher
Tells whether to check the md objects order change.- Overrides:
checkOrderChange
in classAbstractMdObjectMatcher<TopObjectInfo>
- Returns:
true
if should check the md objects order change,false
otherwise
-
-