Interface IPartialModel
-
public interface IPartialModel
The partial model of comparison results used in the UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChild(IPartialModelNode parent, IPartialModelNode child)
Adds the specified child to the specified parent.ICollectionPartialNode
getCollectionNode(long nodeId)
Returns a collection node corresponding to the specified id.IDirectPartialModelNode
getDirectNode(long nodeId)
Returns a direct node corresponding to the specified id.ProjectPartialModelNode
getRoot()
Returns the root of the partial model.void
removeChild(IPartialModelNode parent, IPartialModelNode child)
Removes the specified child from the specified parent node.void
removeChild(IPartialModelNode parent, IPartialModelNode child, boolean keepSubchildren)
Removes the specified child from the specified parent node.void
removeChildren(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
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 benull
child
- 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 benull
child
- the child node to remove from the parent, cannot benull
keepSubchildren
- 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
-
-