M - Modification type@Beta public abstract class AbstractDataModificationCursor<M> extends Object implements DOMDataTreeWriteCursor
DOMDataTreeWriteCursor implementations.| Constructor and Description |
|---|
AbstractDataModificationCursor(M root) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close this cursor.
|
void |
delete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
Delete the specified child.
|
void |
enter(Iterable<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> path)
Move the cursor to the specified child of the current position.
|
void |
enter(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument... path)
Move the cursor to the specified child of the current position.
|
void |
enter(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
Move the cursor to the specified child of the current position.
|
void |
exit()
Move the cursor up to the parent of current position.
|
void |
exit(int depth)
Move the cursor up by specified amounts of steps from the current position.
|
protected abstract WriteCursorStrategy |
getRootOperation(M root) |
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.
|
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.
|
public AbstractDataModificationCursor(M root)
protected abstract WriteCursorStrategy getRootOperation(M root)
public void enter(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
DOMDataTreeCursorenter in interface DOMDataTreeCursorchild - Child identifierpublic void enter(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument... path)
DOMDataTreeCursor#enter(PathArgument), except the operation is performed all
at once.enter in interface DOMDataTreeCursorpath - Nested child identifierpublic void enter(Iterable<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> path)
DOMDataTreeCursor#enter(PathArgument...), except it takes an Iterable argument.enter in interface DOMDataTreeCursorpath - Nested child identifierpublic void exit()
DOMDataTreeCursorexit(1).exit in interface DOMDataTreeCursorpublic void exit(int depth)
DOMDataTreeCursorDOMDataTreeCursor.exit() multiple times, except the operation is performed
atomically.exit in interface DOMDataTreeCursordepth - number of steps to exitpublic abstract void close()
DOMDataTreeCursorclose in interface AutoCloseableclose in interface DOMDataTreeCursorpublic void delete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
DOMDataTreeWriteCursordelete in interface DOMDataTreeWriteCursorchild - Child identifierpublic void merge(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
DOMDataTreeWriteCursormerge in interface DOMDataTreeWriteCursorchild - Child identifierdata - Data to be mergedpublic void write(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
DOMDataTreeWriteCursorwrite in interface DOMDataTreeWriteCursorchild - Child identifierdata - New node dataCopyright © 2019 OpenDaylight. All rights reserved.