Interface YangParserFactory
- All Known Implementing Classes:
DefaultYangParserFactory
public interface YangParserFactory
Basic entry point into a YANG parser implementation. Implementations of this interface are expected to be
thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull YangParser
Create aYangParser
instance operating with defaultYangParserConfiguration
.@NonNull YangParser
createParser
(YangParserConfiguration configuration) Create aYangParser
instance operating with specifiedYangParserConfiguration
.Return enumeration ofImportResolutionMode
s supported by this factory.
-
Method Details
-
supportedImportResolutionModes
Return enumeration ofImportResolutionMode
s supported by this factory.- Returns:
- Enumeration of supported schema source representations
-
createParser
Create aYangParser
instance operating with defaultYangParserConfiguration
.- Returns:
- A new
YangParser
instance
-
createParser
Create aYangParser
instance operating with specifiedYangParserConfiguration
.- Parameters:
configuration
- Requested parser configuration- Returns:
- A new
YangParser
instance - Throws:
NullPointerException
- if configuration is nullIllegalArgumentException
- if specified configuration is not supported
-