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);
}
Aggregations