public class CrossSourceStatementReactor.BuildAction extends Object
Modifier and Type | Method and Description |
---|---|
void |
addLibSources(StatementStreamSource... libSources)
Add library sources.
|
void |
addSource(StatementStreamSource source)
Add main source.
|
void |
addSources(Collection<? extends StatementStreamSource> sources) |
void |
addSources(StatementStreamSource... sources)
Add main sources.
|
EffectiveModelContext |
build() |
EffectiveSchemaContext |
buildEffective() |
SchemaContext |
buildEffective(Collection<com.google.common.io.ByteSource> yangByteSources)
Deprecated.
Use
addSources(Collection) and buildEffective() instead. |
SchemaContext |
buildEffective(List<InputStream> yangInputStreams)
Deprecated.
Use
addSources(Collection) and buildEffective() instead. |
void |
setModulesWithSupportedDeviations(Map<QNameModule,Set<QNameModule>> modulesDeviatedByModules)
Set YANG modules which can be deviated by specified modules during the parsing process.
|
void |
setSupportedFeatures(Set<QName> supportedFeatures)
Set supported features based on which all if-feature statements in the
parsed YANG modules will be resolved.
|
public void addSource(StatementStreamSource source)
source
- which should be added into main sourcespublic void addSources(StatementStreamSource... sources)
sources
- which should be added into main sourcespublic void addSources(Collection<? extends StatementStreamSource> sources)
public void addLibSources(StatementStreamSource... libSources)
libSources
- yang sources which should be added into library sourcespublic void setSupportedFeatures(@Nonnull Set<QName> supportedFeatures)
supportedFeatures
- Set of supported features in the final SchemaContext.
If the set is empty, no features encountered will be supported.public void setModulesWithSupportedDeviations(@Nonnull Map<QNameModule,Set<QNameModule>> modulesDeviatedByModules)
modulesDeviatedByModules
- Map of YANG modules (Map key) which can be deviated by specified modules (Map value) in the final
SchemaContext. If the map is empty, no deviations encountered will be supported.public EffectiveModelContext build() throws ReactorException
SourceException
ReactorException
public EffectiveSchemaContext buildEffective() throws ReactorException
ReactorException
@Deprecated public SchemaContext buildEffective(Collection<com.google.common.io.ByteSource> yangByteSources) throws ReactorException, IOException
addSources(Collection)
and buildEffective()
instead.ReactorException
IOException
@Deprecated public SchemaContext buildEffective(List<InputStream> yangInputStreams) throws ReactorException
addSources(Collection)
and buildEffective()
instead.ReactorException
Copyright © 2018 OpenDaylight. All rights reserved.