Interface IPartialModel
- All Known Implementing Classes:
PartialModel
public interface IPartialModel
The partial model of comparison results used in the UI.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(IPartialModelNode parent, IPartialModelNode child) Adds the specified child to the specified parent.getCollectionNode(long nodeId) Returns a collection node corresponding to the specified id.getDirectNode(long nodeId) Returns a direct node corresponding to the specified id.getRoot()Returns the root of the partial model.voidremoveChild(IPartialModelNode parent, IPartialModelNode child) Removes the specified child from the specified parent node.voidremoveChild(IPartialModelNode parent, IPartialModelNode child, boolean keepSubchildren) Removes the specified child from the specified parent node.voidRemoves all children from the specified node.
-
Method Details
-
getRoot
ProjectPartialModelNode getRoot()Returns the root of the partial model.- Returns:
- the root
-
addChild
Adds the specified child to the specified parent.- Parameters:
parent- the parent nodechild- the child node
-
getDirectNode
Returns a direct node corresponding to the specified id.- Parameters:
nodeId- the comparison model node id- Returns:
- the partial model node or
nullif the partial model doesn't have a direct node corresponding to the specified model node identifier
-
getCollectionNode
Returns a collection node corresponding to the specified id.- Parameters:
nodeId- the comparison model node id- Returns:
- the partial model node or
nullif the partial model doesn't have a collection node corresponding to the specified model node identifier
-
removeChild
Removes the specified child from the specified parent node.- Parameters:
parent- the parent node to remove the child from, cannot benullchild- the child node to remove from the parent, cannot benull
-
removeChild
Removes the specified child from the specified parent node.- Parameters:
parent- the parent node to remove the child from, cannot benullchild- the child node to remove from the parent, cannot benullkeepSubchildren- iftrue, the sub-children of the child node will not be detached from it, otherwise they will be removed also (this behavior is equal toremoveChild(IPartialModelNode, IPartialModelNode))
-
removeChildren
Removes all children from the specified node.- Parameters:
node- the node from which to remove all children, cannot benull
-