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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NonNull YangParser
createParser()
Create aYangParser
instance operating with defaultYangParserConfiguration
.@NonNull YangParser
createParser(YangParserConfiguration configuration)
Create aYangParser
instance operating with specifiedYangParserConfiguration
.Collection<ImportResolutionMode>
supportedImportResolutionModes()
Return enumeration ofImportResolutionMode
s supported by this factory.
-
-
-
Method Detail
-
supportedImportResolutionModes
@Beta Collection<ImportResolutionMode> supportedImportResolutionModes()
Return enumeration ofImportResolutionMode
s supported by this factory.- Returns:
- Enumeration of supported schema source representations
-
createParser
default @NonNull YangParser createParser()
Create aYangParser
instance operating with defaultYangParserConfiguration
.- Returns:
- A new
YangParser
instance
-
createParser
@NonNull YangParser createParser(YangParserConfiguration configuration)
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
-
-