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

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

    • MatchResourceNode

      public MatchResourceNode(MatchResource matchResource)
      Constructor.
      Parameters:
      matchResource - The matchResource represented by this TreeNode
  • Method Details

    • addDiffNode

      public boolean addDiffNode(DiffNode diffNode)
      Add the given DiffNode to the direct children of this MatchResourceNode.
      Parameters:
      diffNode - The DiffNode to add
      Returns:
      true if the MatchNode has been added
    • addMatchNode

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

      public boolean removeDiffNode(DiffNode diffNode)
      Remove the given DiffNode of the direct children of this MatchResourceNode.
      Parameters:
      diffNode - The DiffNode to remove
      Returns:
      true if the DiffNode has been removed
    • removeMatchNode

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

      public MatchResource getMatchResource()
      Getter for the match resource represented by this TreeNode.
      Returns:
      the matchResource
    • getMatches

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