org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.<init>()方法的一些代码示例,展示了YangParserImpl.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangParserImpl.<init>()方法的具体详情如下:
包路径:org.opendaylight.yangtools.yang.parser.impl.YangParserImpl
类名称:YangParserImpl
方法名:<init>

YangParserImpl.<init>介绍

暂无

代码示例

代码示例来源:origin: org.opendaylight.controller/yang-store-impl

static YangParserImpl getYangParserInstance() {
  return new YangParserImpl();
}

代码示例来源:origin: opendaylight/yangtools

@Override
  public YangParser createParser(final StatementParserMode parserMode) {
    return new YangParserImpl(reactor.newBuild(parserMode));
  }
}

代码示例来源:origin: org.opendaylight.yangtools/yang-parser-impl

@Override
  public YangParser createParser(final StatementParserMode parserMode) {
    return new YangParserImpl(reactor.newBuild(parserMode));
  }
}

代码示例来源:origin: org.opendaylight.yangtools/binding-generator-impl

private synchronized Optional<SchemaContext> recreateSchemaContext() {
  try {
    ImmutableList<InputStream> streams = getAvailableStreams();
    YangParserImpl parser = new YangParserImpl();
    Set<Module> modules = parser.parseYangModelsFromStreams(streams);
    SchemaContext schemaContext = parser.resolveSchemaContext(modules);
    return Optional.of(schemaContext);
  } catch (IOException e) {
    LOG.error("Schema was not recreated.",e);
  }
  return Optional.absent();
}

代码示例来源:origin: org.opendaylight.controller/sal-rest-connector

final YangParserImpl yangParser = new YangParserImpl();
final SchemaContext fakeSchemaCx = yangParser.resolveSchemaContext(fakeRpcModules);

相关文章

YangParserImpl类方法