Interface YangLibResolver
@Beta
public interface YangLibResolver
A service capable of transforming a
YangLibModuleSet to an EffectiveModelContext.-
Method Summary
Modifier and TypeMethodDescription@NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContextresolveModuleSet(YangLibModuleSet moduleSet) Build the effective view of a combined view of effective statements.@NonNull Collection<Class<? extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation>>Return enumeration of concrete types ofSchemaSourceRepresentationthis resolver supports.
-
Method Details
-
supportedSourceRepresentations
@NonNull Collection<Class<? extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation>> supportedSourceRepresentations()Return enumeration of concrete types ofSchemaSourceRepresentationthis 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 org.opendaylight.yangtools.yang.model.api.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- ifmoduleSetisnullIllegalArgumentException- ifmoduleSetreferences an unsupportedSchemaSourceRepresentationYangParserException
-