Interface DataTreeModificationCursor
- All Superinterfaces:
AutoCloseable,DataTreeSnapshotCursor
Extension to the
DataTreeSnapshotCursor which allows modifying the data tree. An instance of this interface
can be obtained from CursorAwareDataTreeModification and modifications made through this interface are staged
in the parent modification.-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child) Delete the specified child.voidmerge(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode data) Merge the specified data with the currently-present data at specified path.voidwrite(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode data) Replace the data at specified path with supplied data.
-
Method Details
-
delete
void delete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child) Delete the specified child.- Parameters:
child- Child identifier- Throws:
BackendFailedException- when implementation-specific errors occurs while servicing the request.
-
merge
void merge(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode data) Merge the specified data with the currently-present data at specified path.- Parameters:
child- Child identifierdata- Data to be merged- Throws:
BackendFailedException- when implementation-specific errors occurs while servicing the request.
-
write
void write(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode data) Replace the data at specified path with supplied data.- Parameters:
child- Child identifierdata- New node data- Throws:
BackendFailedException- when implementation-specific errors occurs while servicing the request.
-