Interface CursorAwareDataTreeSnapshot
- All Superinterfaces:
DataTreeSnapshot
- All Known Subinterfaces:
CursorAwareDataTreeModification
A
DataTreeSnapshot which allows creation of a DataTreeSnapshotCursor.-
Method Summary
Modifier and TypeMethodDescriptionCreate a new data tree modification based on this snapshot, using the specified data application strategy.default DataTreeSnapshotCursorCreate a newDataTreeSnapshotCursorat the root of the modification.Optional<? extends DataTreeSnapshotCursor>openCursor(@NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path) Create a newDataTreeSnapshotCursorat specified path.Methods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeSnapshot
modelContext, readNode
-
Method Details
-
openCursor
Optional<? extends DataTreeSnapshotCursor> openCursor(@NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path) Create a newDataTreeSnapshotCursorat specified path. May fail if specified path does not exist.- Parameters:
path- Path at which the cursor is to be anchored- Returns:
- A new cursor, or empty if the path does not exist.
- Throws:
IllegalStateException- if there is another cursor currently open.
-
openCursor
Create a newDataTreeSnapshotCursorat the root of the modification.- Returns:
- A new cursor
- Throws:
IllegalStateException- if there is another cursor currently open.
-
newModification
CursorAwareDataTreeModification newModification()Description copied from interface:DataTreeSnapshotCreate a new data tree modification based on this snapshot, using the specified data application strategy.- Specified by:
newModificationin interfaceDataTreeSnapshot- Returns:
- A new data tree modification
-