Interface CursorAwareDataTreeModification
- All Superinterfaces:
CursorAwareDataTreeSnapshot,DataTreeModification,DataTreeSnapshot
@Beta
public interface CursorAwareDataTreeModification
extends DataTreeModification, CursorAwareDataTreeSnapshot
A
DataTreeModification which allows creation of a DataTreeModificationCursor.-
Method Summary
Modifier and TypeMethodDescriptiondefault DataTreeModificationCursorCreate a newDataTreeModificationCursorat the root of the modification.Optional<? extends DataTreeModificationCursor>openCursor(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path) Create a newDataTreeModificationCursorat specified path.Methods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.CursorAwareDataTreeSnapshot
newModificationMethods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeModification
applyToCursor, delete, merge, ready, writeMethods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeSnapshot
modelContext, readNode
-
Method Details
-
openCursor
Optional<? extends DataTreeModificationCursor> openCursor(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path) Create a newDataTreeModificationCursorat specified path. May fail if specified path does not exist.- Specified by:
openCursorin interfaceCursorAwareDataTreeSnapshot- 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, or the modification is alreadyDataTreeModification.ready().
-
openCursor
Create a newDataTreeModificationCursorat the root of the modification.- Specified by:
openCursorin interfaceCursorAwareDataTreeSnapshot- Returns:
- A new cursor
- Throws:
IllegalStateException- if there is another cursor currently open.
-