Class ComparisonProcessSettings.ComparisonSettingsBuilder

  • Enclosing class:
    ComparisonProcessSettings

    public static final class ComparisonProcessSettings.ComparisonSettingsBuilder
    extends Object
    A builder of comparison process settings objects.
    • 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
      • 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 be null
        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 be null
        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