import org.opendaylight.yang.gen.v1.urn.opendaylight.yang.extension.yang.ext.rev130709.$YangModuleInfoImpl;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
-import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
+import org.opendaylight.yangtools.yang.model.api.source.SourceIdentifier;
+import org.opendaylight.yangtools.yang.model.spi.source.DelegatedYangTextSource;
+import org.opendaylight.yangtools.yang.model.spi.source.URLYangTextSource;
import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
final class Rpcs {
static final EffectiveModelContext CONTEXT = YangParserTestUtils.parseYangSources(YangParserConfiguration.DEFAULT,
null,
- YangTextSchemaSource.delegateForCharSource("yang-ext.yang",
+ new DelegatedYangTextSource(new SourceIdentifier("yang-ext.yang"),
$YangModuleInfoImpl.getInstance().getYangTextCharSource()),
- YangTextSchemaSource.forResource(Rpcs.class, "/rpcs.yang"));
+ new URLYangTextSource(Rpcs.class.getResource("/rpcs.yang")));
static final QName FOO = QName.create("rpcs", "foo");
static final QName BAR = QName.create(FOO, "bar");