import org.opendaylight.yangtools.yang.common.XMLNamespace;
import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
-import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
+import org.opendaylight.yangtools.yang.model.spi.source.YangTextSource;
import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
import org.opendaylight.yangtools.yang.parser.rfc7950.reactor.RFC7950Reactors;
import org.opendaylight.yangtools.yang.parser.rfc7950.repo.YangStatementStreamSource;
final var context = reactor.newBuild()
.addLibSources(
YangStatementStreamSource.create(
- YangTextSchemaSource.forResource(MountPointTest.class, "/ietf-inet-types@2013-07-15.yang")),
+ YangTextSource.forResource(MountPointTest.class, "/ietf-inet-types@2013-07-15.yang")),
YangStatementStreamSource.create(
- YangTextSchemaSource.forResource(MountPointTest.class, "/ietf-yang-schema-mount@2019-01-14.yang")),
+ YangTextSource.forResource(MountPointTest.class, "/ietf-yang-schema-mount@2019-01-14.yang")),
YangStatementStreamSource.create(
- YangTextSchemaSource.forResource(MountPointTest.class, "/ietf-yang-types@2013-07-15.yang")))
+ YangTextSource.forResource(MountPointTest.class, "/ietf-yang-types@2013-07-15.yang")))
.addSources(
+ YangStatementStreamSource.create(YangTextSource.forResource(MountPointTest.class, "/example-grp.yang")),
YangStatementStreamSource.create(
- YangTextSchemaSource.forResource(MountPointTest.class, "/example-grp.yang")),
- YangStatementStreamSource.create(
- YangTextSchemaSource.forResource(MountPointTest.class, "/example-uses.yang")))
+ YangTextSource.forResource(MountPointTest.class, "/example-uses.yang")))
.buildEffective();
assertEquals(5, context.getModules().size());