Interface IMergeSettingsModel


  • public interface IMergeSettingsModel
    Interface access to the restored merge settings (read only).

    Used for only one comparison session.

    For the first time, it is necessary to access the model data in order to traverse the comparison tree in depth.

    See Also:
    IComparisonSession
    • Method Detail

      • hasSettingsUnderTree

        boolean hasSettingsUnderTree​(ComparisonNode comparisonNode,
                                     IComparisonSession comparisonSession)
        Checks if there are restored merge settings for the current subtree. For correct operation, the access method for the parent node must be called first. The input node of the comparison tree must have a parent node (except the root) and be part of the input comparison session.
        Parameters:
        comparisonNode - constructed and validated comparison tree node, not null
        comparisonSession - comparison session to which the node belongs, not null
        Returns:
        true if this node or its descendant has restored merge settings, and false otherwise or if this method has not been called previously for the parent node.
      • getMergeSettingContainer

        SerializableMergeSettings getMergeSettingContainer​(ComparisonNode comparisonNode,
                                                           IComparisonSession comparisonSession)
        Returns the restored join settings for the input node of the comparison tree, if they exist. For correct operation, the access method for the parent node must be called first. The input node of the comparison tree must have a parent node (except the root) and be part of the input comparison session.
        Parameters:
        comparisonNode - constructed and validated comparison tree node, not null
        comparisonSession - comparison session to which the node belongs, not null
        Returns:
        The restored merge settings of the input node or null if they are missing. Return null if this method has not been called previously for the parent node.
      • isEmpty

        boolean isEmpty()
        Tells whether this merge settings model is empty.
        Returns:
        true if empty, false otherwise