Interface IPartialModel


  • public interface IPartialModel
    The partial model of comparison results used in the UI.
    • Method Detail

      • addChild

        void addChild​(IPartialModelNode parent,
                      IPartialModelNode child)
        Adds the specified child to the specified parent.
        Parameters:
        parent - the parent node
        child - the child node
      • getDirectNode

        IDirectPartialModelNode getDirectNode​(long nodeId)
        Returns a direct node corresponding to the specified id.
        Parameters:
        nodeId - the comparison model node id
        Returns:
        the partial model node or null if the partial model doesn't have a direct node corresponding to the specified model node identifier
      • getCollectionNode

        ICollectionPartialNode getCollectionNode​(long nodeId)
        Returns a collection node corresponding to the specified id.
        Parameters:
        nodeId - the comparison model node id
        Returns:
        the partial model node or null if the partial model doesn't have a collection node corresponding to the specified model node identifier
      • removeChild

        void removeChild​(IPartialModelNode parent,
                         IPartialModelNode child)
        Removes the specified child from the specified parent node.
        Parameters:
        parent - the parent node to remove the child from, cannot be null
        child - the child node to remove from the parent, cannot be null
      • removeChild

        void removeChild​(IPartialModelNode parent,
                         IPartialModelNode child,
                         boolean keepSubchildren)
        Removes the specified child from the specified parent node.
        Parameters:
        parent - the parent node to remove the child from, cannot be null
        child - the child node to remove from the parent, cannot be null
        keepSubchildren - if true, the sub-children of the child node will not be detached from it, otherwise they will be removed also (this behavior is equal to removeChild(IPartialModelNode, IPartialModelNode))
      • removeChildren

        void removeChildren​(IPartialModelNode node)
        Removes all children from the specified node.
        Parameters:
        node - the node from which to remove all children, cannot be null