public final class DataSchemaContextTree extends Object
SchemaContext
to a NormalizedNode
tree. Since the layout of the schema
and data has differences, the mapping is not trivial -- which is where this class comes in.Modifier and Type | Method and Description |
---|---|
@NonNull Optional<DataSchemaContextNode<?>> |
findChild(@NonNull YangInstanceIdentifier path)
Find a child node as identified by an absolute
YangInstanceIdentifier . |
static @NonNull DataSchemaContextTree |
from(@NonNull SchemaContext ctx) |
@Nullable DataSchemaContextNode<?> |
getChild(YangInstanceIdentifier path)
Deprecated.
Use
findChild(YangInstanceIdentifier) instead. |
DataSchemaContextNode<?> |
getRoot() |
public static @NonNull DataSchemaContextTree from(@NonNull SchemaContext ctx)
public @NonNull Optional<DataSchemaContextNode<?>> findChild(@NonNull YangInstanceIdentifier path)
YangInstanceIdentifier
.path
- Path towards the child nodeNullPointerException
- if path
is null@Deprecated public @Nullable DataSchemaContextNode<?> getChild(YangInstanceIdentifier path)
findChild(YangInstanceIdentifier)
instead.YangInstanceIdentifier
.path
- Path towards the child nodeNullPointerException
- if path
is nullpublic DataSchemaContextNode<?> getRoot()
Copyright © 2019 OpenDaylight. All rights reserved.