Class DataSchemaContextTree
- java.lang.Object
-
- org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree
-
public final class DataSchemaContextTree extends Object
Semantic tree binding aSchemaContext
to aNormalizedNode
tree. Since the layout of the schema and data has differences, the mapping is not trivial -- which is where this class comes in.- Author:
- Robert Varga
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NonNull Optional<@NonNull DataSchemaContextNode<?>>
findChild(@NonNull YangInstanceIdentifier path)
Find a child node as identified by an absoluteYangInstanceIdentifier
.static @NonNull DataSchemaContextTree
from(@NonNull SchemaContext ctx)
@Nullable DataSchemaContextNode<?>
getChild(YangInstanceIdentifier path)
Deprecated, for removal: This API element is subject to removal in a future version.UsefindChild(YangInstanceIdentifier)
instead.DataSchemaContextNode<?>
getRoot()
-
-
-
Method Detail
-
from
public static @NonNull DataSchemaContextTree from(@NonNull SchemaContext ctx)
-
findChild
public @NonNull Optional<@NonNull DataSchemaContextNode<?>> findChild(@NonNull YangInstanceIdentifier path)
Find a child node as identified by an absoluteYangInstanceIdentifier
.- Parameters:
path
- Path towards the child node- Returns:
- Child node if present, or empty when corresponding child is not found.
- Throws:
NullPointerException
- ifpath
is null
-
getChild
@Deprecated(forRemoval=true) public @Nullable DataSchemaContextNode<?> getChild(YangInstanceIdentifier path)
Deprecated, for removal: This API element is subject to removal in a future version.UsefindChild(YangInstanceIdentifier)
instead.Get a child node as identified by an absoluteYangInstanceIdentifier
.- Parameters:
path
- Path towards the child node- Returns:
- Child node if present, or null when corresponding child is not found.
- Throws:
NullPointerException
- ifpath
is null
-
getRoot
public DataSchemaContextNode<?> getRoot()
-
-