public interface MutableTreeNode extends StoreTreeNode<TreeNode>
seal()
ed, any interactions with it will result in undefined behavior.Modifier and Type | Method and Description |
---|---|
void |
addChild(TreeNode child)
Add a new child node.
|
void |
removeChild(YangInstanceIdentifier.PathArgument id)
Remove a child node.
|
@NonNull TreeNode |
seal()
Finish node modification and return a read-only view of this node.
|
void |
setData(NormalizedNode<?,?> data)
Set the data component of the node.
|
void |
setSubtreeVersion(Version subtreeVersion)
Set the new subtree version.
|
getChild
void setData(NormalizedNode<?,?> data)
data
- New data component, may not be null.NullPointerException
- if data
is nullvoid setSubtreeVersion(Version subtreeVersion)
subtreeVersion
- New subtree version.NullPointerException
- if subtreeVersion
is nullvoid addChild(TreeNode child)
child
- New child node.NullPointerException
- if child
is nullvoid removeChild(YangInstanceIdentifier.PathArgument id)
id
- Child identifier.NullPointerException
- if id
is null@NonNull TreeNode seal()
Copyright © 2019 OpenDaylight. All rights reserved.