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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SerializableMergeSettings
getMergeSettingContainer(ComparisonNode comparisonNode, IComparisonSession comparisonSession)
Returns the restored join settings for the input node of the comparison tree, if they exist.boolean
hasSettingsUnderTree(ComparisonNode comparisonNode, IComparisonSession comparisonSession)
Checks if there are restored merge settings for the current subtree.boolean
isEmpty()
Tells whether this merge settings model is empty.
-
-
-
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, notnull
comparisonSession
- comparison session to which the node belongs, notnull
- Returns:
true
if this node or its descendant has restored merge settings, andfalse
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, notnull
comparisonSession
- comparison session to which the node belongs, notnull
- Returns:
- The restored merge settings of the input node or
null
if they are missing. Returnnull
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
-
-