org.opendaylight.yangtools.yang.parser.repo.YangTextSchemaContextResolver.getSchemaContext()方法的使用及代码示例

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

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

YangTextSchemaContextResolver.getSchemaContext介绍

[英]Try to parse all currently available yang files and build new schema context.
[中]尝试解析所有当前可用的文件,并构建新的模式上下文。

代码示例

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

/**
 * Try to parse all currently available yang files and build new schema context.
 *
 * @return new schema context iif there is at least 1 yang file registered and
 *         new schema context was successfully built.
 */
public Optional<SchemaContext> getSchemaContext() {
  return getSchemaContext(StatementParserMode.DEFAULT_MODE);
}

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

/**
 * Try to parse all currently available yang files and build new schema context.
 *
 * @return new schema context iif there is at least 1 yang file registered and
 *         new schema context was successfully built.
 */
public Optional<SchemaContext> getSchemaContext() {
  return getSchemaContext(StatementParserMode.DEFAULT_MODE);
}

代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding2-runtime

/**
 * Resolving of schema context.
 *
 * @return optional of schema context
 */
public Optional<SchemaContext> tryToCreateSchemaContext() {
  return ctxResolver.getSchemaContext();
}

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

public Optional<SchemaContext> tryToCreateSchemaContext() {
  return ctxResolver.getSchemaContext();
}

相关文章