Interface YangParserFactory


  • @Beta
    public interface YangParserFactory
    Basic entry point into a YANG parser implementation. Implementations of this interface are expected to be thread-safe.
    Author:
    Robert Varga
    • Method Detail

      • supportedParserModes

        Collection<org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode> supportedParserModes()
        Return enumeration of StatementParserModes supported by this factory.
        Returns:
        Enumeration of supported schema source representations.
      • createParser

        default YangParser createParser()
        Create a YangParser instance operating in default import resolution mode.
        Returns:
        A new YangParser instance
      • createParser

        YangParser createParser​(org.opendaylight.yangtools.yang.model.repo.api.StatementParserMode parserMode)
        Create a YangParser instance operating in specified import resolution mode.
        Parameters:
        parserMode - Requested parser mode, may not be null.
        Returns:
        A new YangParser instance
        Throws:
        NullPointerException - if parser mode is null
        IllegalArgumentException - if specified parser mode is not supported