public static class SchemaContextFactoryConfiguration.Builder extends Object implements Builder<SchemaContextFactoryConfiguration>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SchemaContextFactoryConfiguration |
build()
Returns instance of the product.
|
SchemaContextFactoryConfiguration.Builder |
setFilter(SchemaSourceFilter filter)
Set schema source filter which will filter available schema sources
using the provided filter.
|
SchemaContextFactoryConfiguration.Builder |
setModulesDeviatedByModules(com.google.common.collect.SetMultimap<QNameModule,QNameModule> modulesDeviatedByModules)
Set YANG modules which can be deviated by specified modules during
the parsing process.
|
SchemaContextFactoryConfiguration.Builder |
setStatementParserMode(StatementParserMode statementParserMode)
Set yang statement parser mode.
|
SchemaContextFactoryConfiguration.Builder |
setSupportedFeatures(Set<QName> supportedFeatures)
Set supported features based on which all if-feature statements in
the parsed YANG modules will be resolved.
|
public SchemaContextFactoryConfiguration.Builder setFilter(@Nonnull SchemaSourceFilter filter)
filter
- schema source filter which acts as the gating function
before a schema source is considered by the factory for
inclusion in the SchemaContext it produces.public SchemaContextFactoryConfiguration.Builder setStatementParserMode(@Nonnull StatementParserMode statementParserMode)
statementParserMode
- mode of yang statement parserpublic SchemaContextFactoryConfiguration.Builder setSupportedFeatures(Set<QName> supportedFeatures)
supportedFeatures
- Set of supported features in the final SchemaContext. If
the set is empty, no features encountered will be
supported.public SchemaContextFactoryConfiguration.Builder setModulesDeviatedByModules(com.google.common.collect.SetMultimap<QNameModule,QNameModule> modulesDeviatedByModules)
modulesDeviatedByModules
- Map of YANG modules (Map key) which can be deviated by
specified modules (Map values) in the final SchemaContext.
If the map is empty, no deviations encountered will be
supported. If the map is null, all deviations will be applied.public SchemaContextFactoryConfiguration build()
Builder
build
in interface Builder<SchemaContextFactoryConfiguration>
Copyright © 2019 OpenDaylight. All rights reserved.