Class MatchResourceNode

    • Constructor Detail

      • MatchResourceNode

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

      • 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