Interface YangParserFactory
-
public interface YangParserFactoryBasic 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 YangParsercreateParser()Create aYangParserinstance operating with defaultYangParserConfiguration.@NonNull YangParsercreateParser(YangParserConfiguration configuration)Create aYangParserinstance operating with specifiedYangParserConfiguration.Collection<ImportResolutionMode>supportedImportResolutionModes()Return enumeration ofImportResolutionModes supported by this factory.
-
-
-
Method Detail
-
supportedImportResolutionModes
@Beta Collection<ImportResolutionMode> supportedImportResolutionModes()
Return enumeration ofImportResolutionModes supported by this factory.- Returns:
- Enumeration of supported schema source representations
-
createParser
default @NonNull YangParser createParser()
Create aYangParserinstance operating with defaultYangParserConfiguration.- Returns:
- A new
YangParserinstance
-
createParser
@NonNull YangParser createParser(YangParserConfiguration configuration)
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
-
-