Class DefaultYangLibResolver
java.lang.Object
org.opendaylight.yangtools.yang.parser.impl.DefaultYangLibResolver
- All Implemented Interfaces:
YangLibResolver
@Beta
@Singleton
@MetaInfServices
public final class DefaultYangLibResolver
extends Object
implements YangLibResolver
Reference
YangLibResolver
implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveModuleSet
(YangLibModuleSet moduleSet) Build the effective view of a combined view of effective statements.Collection<Class<? extends SchemaSourceRepresentation>>
Return enumeration of concrete types ofSchemaSourceRepresentation
this resolver supports.
-
Constructor Details
-
DefaultYangLibResolver
public DefaultYangLibResolver() -
DefaultYangLibResolver
-
-
Method Details
-
supportedSourceRepresentations
Description copied from interface:YangLibResolver
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.- Specified by:
supportedSourceRepresentations
in interfaceYangLibResolver
- Returns:
- Enumeration of supported schema source representations.
-
resolveModuleSet
public EffectiveModelContext resolveModuleSet(YangLibModuleSet moduleSet) throws IOException, YangParserException Description copied from interface:YangLibResolver
Build the effective view of a combined view of effective statements.- Specified by:
resolveModuleSet
in interfaceYangLibResolver
- Returns:
- Effective module statements indexed by their QNameModule.
- Throws:
IOException
- if a module source cannot be readYangSyntaxErrorException
- when a syntactic error is encounteredYangParserException
-