- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.opendaylight.yangtools.yang.model.parser.api.YangParser.setSupportedFeatures()
方法的一些代码示例,展示了YangParser.setSupportedFeatures()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangParser.setSupportedFeatures()
方法的具体详情如下:
包路径:org.opendaylight.yangtools.yang.model.parser.api.YangParser
类名称:YangParser
方法名:setSupportedFeatures
[英]Set supported features based on which all if-feature statements in the parsed YANG modules will be resolved. If this method is not invoked, all features will be supported.
[中]设置支持的功能,解析模块中的所有if功能语句都将基于这些功能进行解析。如果不调用此方法,则将支持所有功能。
代码示例来源:origin: opendaylight/yangtools
public static SchemaContext parseSources(final StatementParserMode parserMode, final Set<QName> supportedFeatures,
final Collection<? extends SchemaSourceRepresentation> sources) {
final YangParser parser = PARSER_FACTORY.createParser(parserMode);
if (supportedFeatures != null) {
parser.setSupportedFeatures(supportedFeatures);
}
try {
parser.addSources(sources);
} catch (YangSyntaxErrorException e) {
throw new IllegalArgumentException("Malformed source", e);
} catch (IOException e) {
throw new IllegalArgumentException("Failed to read a source", e);
}
try {
return parser.buildSchemaContext();
} catch (YangParserException e) {
throw new IllegalStateException("Failed to assemble SchemaContext", e);
}
}
代码示例来源:origin: opendaylight/yangtools
static SchemaContext parseYangSources(final Set<QName> supportedFeatures, final List<File> testFiles,
final List<File> libFiles) throws IOException, YangParserException {
checkArgument(!testFiles.isEmpty(), "No yang sources");
final YangParser parser = PARSER_FACTORY.createParser();
if (supportedFeatures != null) {
parser.setSupportedFeatures(supportedFeatures);
}
for (File file : testFiles) {
parser.addSource(YangTextSchemaSource.forFile(file));
}
for (File file : libFiles) {
parser.addLibSource(YangTextSchemaSource.forFile(file));
}
return parser.buildSchemaContext();
}
本文整理了Java中org.opendaylight.yangtools.yang.binding.YangModuleInfo类的一些代码示例,展示了YangModuleInfo类的具体用法。这些代
本文整理了Java中org.opendaylight.yangtools.yang.common.YangVersion类的一些代码示例,展示了YangVersion类的具体用法。这些代码示例主要来源
本文整理了Java中org.opendaylight.yangtools.yang.binding.YangModelBindingProvider类的一些代码示例,展示了YangModelBindi
本文整理了Java中org.opendaylight.yangtools.yang.common.YangConstants类的一些代码示例,展示了YangConstants类的具体用法。这些代码示例
本文整理了Java中org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier类的一些代码示例,展示了YangInstanceIde
本文整理了Java中org.opendaylight.yangtools.yang.model.api.YangStmtMapping类的一些代码示例,展示了YangStmtMapping类的具体用法
本文整理了Java中org.opendaylight.yangtools.yang.parser.impl.YangParserImpl类的一些代码示例,展示了YangParserImpl类的具体用法
本文整理了Java中org.opendaylight.yangtools.yang.test.util.YangParserTestUtils类的一些代码示例,展示了YangParserTestUti
本文整理了Java中org.opendaylight.yangtools.yang.parser.repo.YangTextSchemaContextResolver类的一些代码示例,展示了YangT
本文整理了Java中org.opendaylight.yangtools.odlext.model.api.YangModeledAnyXmlSchemaNode类的一些代码示例,展示了YangMod
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangQNameExpr类的一些代码示例,展示了YangQNameExpr类的具体用法。这些代
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFilterExpr类的一些代码示例,展示了YangFilterExpr类的具体用法。这
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangNegateExpr类的一些代码示例,展示了YangNegateExpr类的具体用法。这
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunctionCallExpr类的一些代码示例,展示了YangFunctionCall
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangLocationPath类的一些代码示例,展示了YangLocationPath类的具体
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangNaryExpr类的一些代码示例,展示了YangNaryExpr类的具体用法。这些代码示
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunction类的一些代码示例,展示了YangFunction类的具体用法。这些代码示
本文整理了Java中org.opendaylight.yangtools.yang.data.util.YangModeledAnyXmlNodeDataWithSchema类的一些代码示例,展示了Y
本文整理了Java中org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.of()方法的一些代码示例,展示了YangInsta
本文整理了Java中org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource类的一些代码示例,展示了YangTextSch
我是一名优秀的程序员,十分优秀!