Search in sources :

Example 1 with InMemoryDataTree

use of org.opendaylight.yangtools.yang.data.tree.impl.InMemoryDataTree in project yangtools by opendaylight.

the class InMemoryDataTreeFactory method createDataTree.

@NonNull
private static DataTree createDataTree(final DataTreeConfiguration treeConfig, final EffectiveModelContext initialSchemaContext, final boolean maskMandatory) {
    final DataSchemaNode rootSchemaNode = getRootSchemaNode(initialSchemaContext, treeConfig.getRootPath());
    final NormalizedNode rootDataNode = createRoot((DataNodeContainer) rootSchemaNode, treeConfig.getRootPath());
    return new InMemoryDataTree(TreeNode.of(rootDataNode, Version.initial()), treeConfig, initialSchemaContext, rootSchemaNode, maskMandatory);
}
Also used : InMemoryDataTree(org.opendaylight.yangtools.yang.data.tree.impl.InMemoryDataTree) DataSchemaNode(org.opendaylight.yangtools.yang.model.api.DataSchemaNode) NormalizedNode(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode) NonNull(org.eclipse.jdt.annotation.NonNull)

Aggregations

NonNull (org.eclipse.jdt.annotation.NonNull)1 NormalizedNode (org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode)1 InMemoryDataTree (org.opendaylight.yangtools.yang.data.tree.impl.InMemoryDataTree)1 DataSchemaNode (org.opendaylight.yangtools.yang.model.api.DataSchemaNode)1