Interface IPartialModel
-
public interface IPartialModelThe partial model of comparison results used in the UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChild(IPartialModelNode parent, IPartialModelNode child)Adds the specified child to the specified parent.ICollectionPartialNodegetCollectionNode(long nodeId)Returns a collection node corresponding to the specified id.IDirectPartialModelNodegetDirectNode(long nodeId)Returns a direct node corresponding to the specified id.ProjectPartialModelNodegetRoot()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.voidremoveChildren(IPartialModelNode node)Removes all children from the specified node.
-
-
-
Method Detail
-
getRoot
ProjectPartialModelNode getRoot()
Returns the root of the partial model.- Returns:
- the root
-
addChild
void addChild(IPartialModelNode parent, IPartialModelNode child)
Adds the specified child to the specified parent.- Parameters:
parent- the parent nodechild- 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
nullif 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
nullif 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 benullchild- the child node to remove from the parent, cannot benull
-
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 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
void removeChildren(IPartialModelNode node)
Removes all children from the specified node.- Parameters:
node- the node from which to remove all children, cannot benull
-
-