Class DataSchemaContextTree
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveModelContextProvider
-
- org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree
-
- All Implemented Interfaces:
EffectiveModelContextProvider
public final class DataSchemaContextTree extends AbstractEffectiveModelContextProvider
Semantic tree binding aEffectiveModelContext
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 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 EffectiveModelContext ctx)
@NonNull DataSchemaContextNode<?>
getRoot()
-
Methods inherited from class org.opendaylight.yangtools.yang.model.spi.AbstractEffectiveModelContextProvider
addToStringAttributes, getEffectiveModelContext, toString
-
-
-
-
Method Detail
-
from
public static @NonNull DataSchemaContextTree from(@NonNull EffectiveModelContext 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
-
getRoot
public @NonNull DataSchemaContextNode<?> getRoot()
-
-