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)
DOMDataTreeCursor
enter
in interface DOMDataTreeCursor
child
- 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 DOMDataTreeCursor
path
- 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 DOMDataTreeCursor
path
- Nested child identifierpublic void exit()
DOMDataTreeCursor
exit(1)
.exit
in interface DOMDataTreeCursor
public void exit(int depth)
DOMDataTreeCursor
DOMDataTreeCursor.exit()
multiple times, except the operation is performed
atomically.exit
in interface DOMDataTreeCursor
depth
- number of steps to exitpublic abstract void close()
DOMDataTreeCursor
close
in interface AutoCloseable
close
in interface DOMDataTreeCursor
public void delete(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
DOMDataTreeWriteCursor
delete
in interface DOMDataTreeWriteCursor
child
- Child identifierpublic void merge(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> data)
DOMDataTreeWriteCursor
merge
in interface DOMDataTreeWriteCursor
child
- 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)
DOMDataTreeWriteCursor
write
in interface DOMDataTreeWriteCursor
child
- Child identifierdata
- New node dataCopyright © 2019 OpenDaylight. All rights reserved.