Class DataSchemaContextTree
java.lang.Object
org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveModelContextProvider
org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree
- All Implemented Interfaces:
EffectiveModelContextProvider
Semantic tree binding a
EffectiveModelContext
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.- Author:
- Robert Varga
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NonNull CheckedValue<@NonNull DataSchemaContextTree.NodeAndStack,
@NonNull IllegalArgumentException> Find a child node as identified by an absoluteYangInstanceIdentifier
and return it along with a suitably initializedSchemaInferenceStack
.@NonNull Optional<@NonNull DataSchemaContextNode<?>>
findChild
(@NonNull YangInstanceIdentifier path) Find a child node as identified by an absoluteYangInstanceIdentifier
.static @NonNull DataSchemaContextTree
from
(@NonNull EffectiveModelContext ctx) @NonNull DataSchemaContextNode<?>
getRoot()
Methods inherited from class org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveModelContextProvider
addToStringAttributes, getEffectiveModelContext, toString
-
Method Details
-
from
-
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
-
enterPath
public @NonNull CheckedValue<@NonNull DataSchemaContextTree.NodeAndStack,@NonNull IllegalArgumentException> enterPath(YangInstanceIdentifier path) Find a child node as identified by an absoluteYangInstanceIdentifier
and return it along with a suitably initializedSchemaInferenceStack
.- Parameters:
path
- Path towards the child node- Returns:
- A
DataSchemaContextTree.NodeAndStack
, or empty when corresponding child is not found. - Throws:
NullPointerException
- ifpath
is null
-
getRoot
-