@Beta @NotThreadSafe public interface DataTreeSnapshotCursor extends AutoCloseable
DataTreeSnapshot
. It allows
operations relative to that position, as well as moving the position up or down
the tree.Modifier and Type | Method and Description |
---|---|
void |
close()
Close this cursor.
|
void |
enter(Iterable<YangInstanceIdentifier.PathArgument> path)
Move the cursor to the specified child of the current position.
|
void |
enter(YangInstanceIdentifier.PathArgument... path)
Move the cursor to the specified child of the current position.
|
void |
enter(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.
|
Optional<NormalizedNode<?,?>> |
readNode(YangInstanceIdentifier.PathArgument child)
Read a particular node from the snapshot.
|
void enter(@Nonnull YangInstanceIdentifier.PathArgument child)
child
- Child identifierBackendFailedException
- when an implementation-specific error occurs
while servicing the request.IllegalArgumentException
- when specified identifier does not identify
a valid child, or if that child is not an
instance of NormalizedNodeContainer
.void enter(@Nonnull YangInstanceIdentifier.PathArgument... path)
#enter(PathArgument)
,
except the operation is performed all at once.path
- Nested child identifierBackendFailedException
- when an implementation-specific error occurs
while servicing the request.IllegalArgumentException
- when specified path does not identify
a valid child, or if that child is not an
instance of NormalizedNodeContainer
.void enter(@Nonnull Iterable<YangInstanceIdentifier.PathArgument> path)
#enter(PathArgument...)
, except it takes an Iterable
argument.path
- Nested child identifierBackendFailedException
- when an implementation-specific error occurs
while servicing the request.IllegalArgumentException
- when specified path does not identify
a valid child, or if that child is not an
instance of NormalizedNodeContainer
.void exit()
exit(1)
.IllegalStateException
- when exiting would violate containment, typically
by attempting to exit more levels than previously
entered.void exit(int depth)
exit()
multiple times, except the
operation is performed atomically.depth
- number of steps to exitIllegalArgumentException
- when depth is negative.IllegalStateException
- when exiting would violate containment, typically
by attempting to exit more levels than previously
entered.Optional<NormalizedNode<?,?>> readNode(@Nonnull YangInstanceIdentifier.PathArgument child)
child
- Child identifierBackendFailedException
- when implementation-specific error occurs while
servicing the request.IllegalArgumentException
- when specified path does not identify a valid child.void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.