import org.opendaylight.mdsal.binding.runtime.spi.ModuleInfoSnapshotBuilder;
import org.opendaylight.mdsal.yanglib.api.SchemaContextResolver;
import org.opendaylight.mdsal.yanglib.api.YangLibSupport;
+import org.opendaylight.mdsal.yanglib.api.YangLibraryContentBuilder;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.library.rev160621.ModulesState;
import org.opendaylight.yangtools.rfc8528.data.api.MountPointContextFactory;
import org.opendaylight.yangtools.rfc8528.data.api.MountPointIdentifier;
private final BindingDataObjectCodecTreeNode<ModulesState> codec;
private final EffectiveModelContext context;
+ private final BindingCodecTree codecTree;
@Inject
public YangModuleLibrarySupport(final YangParserFactory parserFactory, final BindingRuntimeGenerator generator,
.build();
context = snapshot.getEffectiveModelContext();
- final BindingCodecTree codecTree = codecFactory.create(new DefaultBindingRuntimeContext(
+ codecTree = codecFactory.create(new DefaultBindingRuntimeContext(
generator.generateTypeMapping(context), snapshot));
this.codec = verifyNotNull(codecTree.getSubtreeCodec(InstanceIdentifier.create(ModulesState.class)));
public Revision implementedRevision() {
return REVISION;
}
+
+ @Override
+ public YangLibraryContentBuilder newContentBuilder() {
+ return new Rfc7895ContentBuilder(codecTree);
+ }
}