public class BindingDOMDataTreeWriteCursorAdapter<T extends DOMDataTreeWriteCursor> extends Object implements DataTreeWriteCursor
Constructor and Description |
---|
BindingDOMDataTreeWriteCursorAdapter(DataTreeIdentifier<?> path,
T delegate,
BindingToNormalizedNodeCodec codec) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this cursor.
|
void |
delete(InstanceIdentifier.PathArgument child)
Delete the specified child.
|
void |
enter(InstanceIdentifier.PathArgument... path)
Move the cursor to the specified child of the current position.
|
void |
enter(InstanceIdentifier.PathArgument child)
Move the cursor to the specified child of the current position.
|
void |
enter(Iterable<InstanceIdentifier.PathArgument> path)
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 BindingToNormalizedNodeCodec |
getCodec() |
T |
getDelegate() |
<P extends DataObject> |
merge(InstanceIdentifier.PathArgument child,
P data)
Merge the specified data with the currently-present data at specified path.
|
<P extends DataObject> |
write(InstanceIdentifier.PathArgument child,
P data)
Replace the data at specified path with supplied data.
|
public BindingDOMDataTreeWriteCursorAdapter(DataTreeIdentifier<?> path, T delegate, BindingToNormalizedNodeCodec codec)
public void delete(InstanceIdentifier.PathArgument child)
DataTreeWriteCursor
delete
in interface DataTreeWriteCursor
child
- Child identifierpublic <P extends DataObject> void merge(InstanceIdentifier.PathArgument child, P data)
DataTreeWriteCursor
merge
in interface DataTreeWriteCursor
child
- Child identifierdata
- Data to be mergedpublic <P extends DataObject> void write(InstanceIdentifier.PathArgument child, P data)
DataTreeWriteCursor
write
in interface DataTreeWriteCursor
child
- Child identifierdata
- New node datapublic void enter(InstanceIdentifier.PathArgument child)
DataTreeCursor
enter
in interface DataTreeCursor
child
- Child identifierpublic void enter(InstanceIdentifier.PathArgument... path)
DataTreeCursor
#enter(PathArgument)
, except the operation is performed all
at once.enter
in interface DataTreeCursor
path
- Nested child identifierpublic void enter(Iterable<InstanceIdentifier.PathArgument> path)
DataTreeCursor
#enter(PathArgument...)
, except it takes an Iterable
argument.enter
in interface DataTreeCursor
path
- Nested child identifierpublic void exit()
DataTreeCursor
exit(1)
.exit
in interface DataTreeCursor
public void exit(int depth)
DataTreeCursor
DataTreeCursor.exit()
multiple times, except the operation is performed
atomically.exit
in interface DataTreeCursor
depth
- number of steps to exitpublic void close()
DataTreeCursor
close
in interface AutoCloseable
close
in interface DataTreeCursor
public final T getDelegate()
getDelegate
in interface org.opendaylight.yangtools.concepts.Delegator<T>
protected final BindingToNormalizedNodeCodec getCodec()
Copyright © 2019 OpenDaylight. All rights reserved.