Interface YangParserFactory
-
@Beta @Deprecated(since="7.0.0", forRemoval=true) public interface YangParserFactory
Deprecated, for removal: This API element is subject to removal in a future version.UseYangParserFactoryinstead.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 Deprecated Methods Modifier and Type Method Description default @NonNull YangParsercreateParser()Deprecated, for removal: This API element is subject to removal in a future version.Create aYangParserinstance operating with defaultYangParserConfiguration.default @NonNull YangParsercreateParser(org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode parserMode)Deprecated, for removal: This API element is subject to removal in a future version.UsecreateParser(YangParserConfiguration)instead.@NonNull YangParsercreateParser(YangParserConfiguration configuration)Deprecated, for removal: This API element is subject to removal in a future version.Create aYangParserinstance operating with specifiedYangParserConfiguration.Collection<org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode>supportedParserModes()Deprecated, for removal: This API element is subject to removal in a future version.Return enumeration ofStatementParserModes supported by this factory.
-
-
-
Method Detail
-
supportedParserModes
Collection<org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode> supportedParserModes()
Deprecated, for removal: This API element is subject to removal in a future version.Return enumeration ofStatementParserModes supported by this factory.- Returns:
- Enumeration of supported schema source representations
-
createParser
default @NonNull YangParser createParser()
Deprecated, for removal: This API element is subject to removal in a future version.Create aYangParserinstance operating with defaultYangParserConfiguration.- Returns:
- A new
YangParserinstance
-
createParser
@NonNull YangParser createParser(YangParserConfiguration configuration)
Deprecated, for removal: This API element is subject to removal in a future version.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
-
createParser
@Deprecated(forRemoval=true) default @NonNull YangParser createParser(org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode parserMode)
Deprecated, for removal: This API element is subject to removal in a future version.UsecreateParser(YangParserConfiguration)instead.Create aYangParserinstance operating in specified import resolution mode.- Parameters:
parserMode- Requested parser mode, may not be null.- Returns:
- A new
YangParserinstance - Throws:
NullPointerException- if parser mode is nullIllegalArgumentException- if specified parser mode is not supported
-
-