public static class SchemaContextFactoryConfiguration.Builder extends Object implements Builder<SchemaContextFactoryConfiguration>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
@NonNull SchemaContextFactoryConfiguration |
build()
Returns instance of the product.
|
@NonNull SchemaContextFactoryConfiguration.Builder |
setFilter(@NonNull SchemaSourceFilter filter)
Set schema source filter which will filter available schema sources using the provided filter.
|
@NonNull SchemaContextFactoryConfiguration.Builder |
setModulesDeviatedByModules(@Nullable com.google.common.collect.SetMultimap<QNameModule,QNameModule> modulesDeviatedByModules)
Set YANG modules which can be deviated by specified modules during the parsing process.
|
@NonNull SchemaContextFactoryConfiguration.Builder |
setStatementParserMode(@NonNull StatementParserMode statementParserMode)
Set YANG statement parser mode.
|
@NonNull 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 @NonNull 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 @NonNull SchemaContextFactoryConfiguration.Builder setStatementParserMode(@NonNull StatementParserMode statementParserMode)
statementParserMode
- mode of yang statement parserpublic @NonNull 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 @NonNull SchemaContextFactoryConfiguration.Builder setModulesDeviatedByModules(@Nullable 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 @NonNull SchemaContextFactoryConfiguration build()
CheckedBuilder
build
in interface CheckedBuilder<SchemaContextFactoryConfiguration,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.