Interface YangParserFactory
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 YangParserCreate aYangParserinstance operating with defaultYangParserConfiguration.@NonNull YangParsercreateParser(YangParserConfiguration configuration) Create aYangParserinstance operating with specifiedYangParserConfiguration.Return enumeration ofImportResolutionModes supported by this factory.
-
Method Details
-
supportedImportResolutionModes
Return enumeration ofImportResolutionModes supported by this factory.- Returns:
- Enumeration of supported schema source representations
-
createParser
Create aYangParserinstance operating with defaultYangParserConfiguration.- Returns:
- A new
YangParserinstance
-
createParser
Create aYangParserinstance operating with specifiedYangParserConfiguration.- Parameters:
configuration- Requested parser configuration- Returns:
- A new
YangParserinstance - Throws:
NullPointerException- if configuration is nullIllegalArgumentException- if specified configuration is not supported
-