Interface IPartialModel
- 
 public interface IPartialModelThe partial model of comparison results used in the UI.
- 
- 
Method SummaryAll 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- 
getRootProjectPartialModelNode getRoot() Returns the root of the partial model.- Returns:
- the root
 
 - 
addChildvoid addChild(IPartialModelNode parent, IPartialModelNode child) Adds the specified child to the specified parent.- Parameters:
- parent- the parent node
- child- the child node
 
 - 
getDirectNodeIDirectPartialModelNode 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
 
 - 
getCollectionNodeICollectionPartialNode 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
 
 - 
removeChildvoid 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
 
 - 
removeChildvoid 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))
 
 - 
removeChildrenvoid removeChildren(IPartialModelNode node) Removes all children from the specified node.- Parameters:
- node- the node from which to remove all children, cannot be- null
 
 
- 
 
-