Interface YangLibResolver
- All Known Implementing Classes:
DefaultYangLibResolver
A service capable of transforming a
YangLibModuleSet
to an EffectiveModelContext
.-
Method Summary
Modifier and TypeMethodDescription@NonNull EffectiveModelContext
resolveModuleSet
(YangLibModuleSet moduleSet) Build the effective view of a combined view of effective statements.@NonNull Collection<Class<? extends SchemaSourceRepresentation>>
Return enumeration of concrete types ofSchemaSourceRepresentation
this resolver supports.
-
Method Details
-
supportedSourceRepresentations
@NonNull Collection<Class<? extends SchemaSourceRepresentation>> supportedSourceRepresentations()Return enumeration of concrete types ofSchemaSourceRepresentation
this resolver supports. Users can use this information prepare the source they have to a representation which will be accepted by this resolver.- Returns:
- Enumeration of supported schema source representations.
-
resolveModuleSet
@NonNull EffectiveModelContext resolveModuleSet(YangLibModuleSet moduleSet) throws IOException, YangParserException Build the effective view of a combined view of effective statements.- Returns:
- Effective module statements indexed by their QNameModule.
- Throws:
IOException
- if a module source cannot be readYangSyntaxErrorException
- when a syntactic error is encounteredNullPointerException
- ifmoduleSet
isnull
IllegalArgumentException
- ifmoduleSet
references an unsupportedSchemaSourceRepresentation
YangParserException
-