Interface DataTreeModification
- All Superinterfaces:
DataTreeSnapshot
,EffectiveModelContextProvider
- All Known Subinterfaces:
CursorAwareDataTreeModification
Class encapsulation of set of modifications to a base tree. This tree is backed by a read-only snapshot and tracks
modifications on top of that. The modification has the ability to rebase itself to a new snapshot.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToCursor
(@NonNull DataTreeModificationCursor cursor) Apply the contents of this modification to a cursor.void
delete
(YangInstanceIdentifier path) Delete the node at specified path.void
merge
(YangInstanceIdentifier path, NormalizedNode data) Merge the specified data with the currently-present data at specified path.void
ready()
Finish creation of a modification, making it ready for application to the data tree.void
write
(YangInstanceIdentifier path, NormalizedNode data) Replace the data at specified path with supplied data.Methods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeSnapshot
newModification, readNode
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider
getEffectiveModelContext
-
Method Details
-
delete
Delete the node at specified path.- Parameters:
path
- Node path
-
merge
Merge the specified data with the currently-present data at specified path.- Parameters:
path
- Node pathdata
- Data to be merged
-
write
Replace the data at specified path with supplied data.- Parameters:
path
- Node pathdata
- New node data
-
ready
void ready()Finish creation of a modification, making it ready for application to the data tree. Any calls to this object's methods exceptapplyToCursor(DataTreeModificationCursor)
will result in undefined behavior, possibly with anIllegalStateException
being thrown. -
applyToCursor
Apply the contents of this modification to a cursor. This can be used to replicate this modification onto another one. The cursor's position must match the root of this modification, otherwise performing this operation will result in undefined behavior.- Parameters:
cursor
- cursor to which this modification
-