@Beta public interface YangLibResolver
A service capable of transforming a YangLibModuleSet to an EffectiveModelContext.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.opendaylight.yangtools.yang.model.api.EffectiveModelContext
    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 of SchemaSourceRepresentation this resolver supports.
  • Method Details

    • supportedSourceRepresentations

      @NonNull Collection<Class<? extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation>> supportedSourceRepresentations()
      Return enumeration of concrete types of SchemaSourceRepresentation 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 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 read
      YangSyntaxErrorException - when a syntactic error is encountered
      NullPointerException - if moduleSet is null
      IllegalArgumentException - if moduleSet references an unsupported SchemaSourceRepresentation
      YangParserException