Package com._1c.g5.v8.dt.compare.core
Class ComparisonProcessSettings.ComparisonSettingsBuilder
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.ComparisonProcessSettings.ComparisonSettingsBuilder
-
- Enclosing class:
- ComparisonProcessSettings
public static final class ComparisonProcessSettings.ComparisonSettingsBuilder extends Object
A builder of comparison process settings objects.
-
-
Constructor Summary
Constructors Constructor Description ComparisonSettingsBuilder(MatchingStrategy matchingStrategy)
Constructs a builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonProcessSettings.ComparisonSettingsBuilder
avoidExternalMergeToolSupport(boolean avoidExternalMergeToolSupport)
Tells whether to avoid the external merge tool support.ComparisonProcessSettings
build()
Returns a new comparison settings objects instantiated according to values set here.ComparisonProcessSettings.ComparisonSettingsBuilder
correspondences(List<ObjectsTriple<String>> correspondences)
Sets the explicit correspondences to be used in the process.ComparisonProcessSettings.ComparisonSettingsBuilder
mainSideModifiedObjectsTrie(IEObjectTrie mainSideModifiedObjectsTrie)
Sets the trie of main side modified (changed, added, deleted) objects compared to the ancestor side.ComparisonProcessSettings.ComparisonSettingsBuilder
mainSideObjectsDeletionAllowed(boolean mainSideObjectsDeletionAllowed)
Specifies whether the main side object deletion is allowed.ComparisonProcessSettings.ComparisonSettingsBuilder
mergeObjectsContent(boolean mergeObjectsContent)
Sets the merge objects content only.ComparisonProcessSettings.ComparisonSettingsBuilder
mergeSettingsModel(IMergeSettingsModel mergeSettingsModel)
Sets restored merge settings model.ComparisonProcessSettings.ComparisonSettingsBuilder
mergeWithInfobase(boolean mergeWithInfobase)
Specifies the compare/merge is with the infobase.ComparisonProcessSettings.ComparisonSettingsBuilder
otherSideModifiedObjectsTrie(IEObjectTrie otherSideModifiedObjectsTrie)
Sets the trie of other side modified (changed, added, deleted) objects compared to the ancestor side.ComparisonProcessSettings.ComparisonSettingsBuilder
parseBslModuleStructure(boolean parseBslModuleStructure)
Specifies whether to compare and merge a Bsl module with parsing module structure.
-
-
-
Constructor Detail
-
ComparisonSettingsBuilder
public ComparisonSettingsBuilder(MatchingStrategy matchingStrategy)
Constructs a builder.- Parameters:
matchingStrategy
- the matching strategy
-
-
Method Detail
-
build
public ComparisonProcessSettings build()
Returns a new comparison settings objects instantiated according to values set here.- Returns:
- a new comparison process settings object
-
mergeSettingsModel
public ComparisonProcessSettings.ComparisonSettingsBuilder mergeSettingsModel(IMergeSettingsModel mergeSettingsModel)
Sets restored merge settings model.- Parameters:
mergeSettingsModel
- model merge settings for recovery, notnull
- Returns:
- this
-
correspondences
public ComparisonProcessSettings.ComparisonSettingsBuilder correspondences(List<ObjectsTriple<String>> correspondences)
Sets the explicit correspondences to be used in the process.- Parameters:
correspondences
- a list of FQN trilpe defining the correspondences, notnull
- Returns:
- this
-
mergeWithInfobase
public ComparisonProcessSettings.ComparisonSettingsBuilder mergeWithInfobase(boolean mergeWithInfobase)
Specifies the compare/merge is with the infobase.ComparisonProcessSettings.getMainSideModifiedObjectsTrie()
- Parameters:
mergeWithInfobase
-true
if the compare/merge is with the infobase,false
otherwise- Returns:
- this
-
mainSideModifiedObjectsTrie
public ComparisonProcessSettings.ComparisonSettingsBuilder mainSideModifiedObjectsTrie(IEObjectTrie mainSideModifiedObjectsTrie)
Sets the trie of main side modified (changed, added, deleted) objects compared to the ancestor side. It is actual for merge with infobase case.- Parameters:
mainSideModifiedObjectsTrie
- the trie of main side modified objects compared to the ancestor side, can not benull
- Returns:
- this
-
otherSideModifiedObjectsTrie
public ComparisonProcessSettings.ComparisonSettingsBuilder otherSideModifiedObjectsTrie(IEObjectTrie otherSideModifiedObjectsTrie)
Sets the trie of other side modified (changed, added, deleted) objects compared to the ancestor side. It is actual for merge with infobase case.- Parameters:
otherSideModifiedObjectsTrie
- the trie of other side modified objects compared to the ancestor side, can not benull
- Returns:
- this
-
mainSideObjectsDeletionAllowed
public ComparisonProcessSettings.ComparisonSettingsBuilder mainSideObjectsDeletionAllowed(boolean mainSideObjectsDeletionAllowed)
Specifies whether the main side object deletion is allowed.- Parameters:
mainSideObjectsDeletionAllowed
-true
if the main side object deletion is allowed,false
otherwise- Returns:
- this
-
parseBslModuleStructure
public ComparisonProcessSettings.ComparisonSettingsBuilder parseBslModuleStructure(boolean parseBslModuleStructure)
Specifies whether to compare and merge a Bsl module with parsing module structure.- Parameters:
parseBslModuleStructure
-true
if compare and merge a Bsl module with parsing module structure,false
otherwise- Returns:
- this
-
mergeObjectsContent
public ComparisonProcessSettings.ComparisonSettingsBuilder mergeObjectsContent(boolean mergeObjectsContent)
Sets the merge objects content only.- Parameters:
mergeObjectsContent
-true
if merge objects content only,false
otherwise- Returns:
- this
-
avoidExternalMergeToolSupport
public ComparisonProcessSettings.ComparisonSettingsBuilder avoidExternalMergeToolSupport(boolean avoidExternalMergeToolSupport)
Tells whether to avoid the external merge tool support.- Parameters:
avoidExternalMergeToolSupport
-true
if avoid the external merge tool support,false
otherwise- Returns:
- this
-
-