All Implemented Interfaces:
Notifier, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, TreeNode

public class ConflictNode extends TreeNodeImpl
This class is wrapper for TreeNode used to represent a conflict TreeNode.
Since:
4.3
  • Constructor Details

    • ConflictNode

      public ConflictNode(Conflict conflict)
      Constructor.
      Parameters:
      conflict - The conflict represented by this TreeNode
  • Method Details

    • addConflictingTree

      public boolean addConflictingTree(MatchNode matchNode)
      Add the given MatchNode to the children of this ConflictNode.
      Parameters:
      matchNode - The MatchNode to add
      Returns:
      true if the MatchNode has been added
    • removeConflictingTree

      public boolean removeConflictingTree(MatchNode matchNode)
      Remove the given MatchNode of the children of this ConflictNode.
      Parameters:
      matchNode - The MatchNode to remove
      Returns:
      true if the MatchNode has been removed
    • getConflict

      public Conflict getConflict()
      Getter for the conflict represented by this TreeNode.
      Returns:
      the conflict
    • getConflictingTrees

      public Iterable<MatchNode> getConflictingTrees()
      Get all the match trees that are part of the conflict
      Returns:
      an iterable of all MatchNode that are part of the conflict