@Beta @NotThreadSafe public interface DOMDataTreeCursor extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this cursor.
|
void |
enter(@NonNull Iterable<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> path)
Move the cursor to the specified child of the current position.
|
default void |
enter(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument... path)
Move the cursor to the specified child of the current position.
|
void |
enter(@NonNull 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.
|
void enter(@NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument child)
child
- Child identifierIllegalArgumentException
- when specified identifier does not identify a valid child,
or if that child is not an instance of NormalizedNodeContainer
.default void enter(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument... path)
#enter(PathArgument)
, except the operation is performed all
at once.path
- Nested child identifierIllegalArgumentException
- when specified path does not identify a valid child, or if
that child is not an instance of NormalizedNodeContainer
.void enter(@NonNull Iterable<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> path)
#enter(PathArgument...)
, except it takes an Iterable
argument.path
- Nested child identifierIllegalArgumentException
- 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.void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.