Interface StatementStreamSource

    • Method Detail

      • writePreLinkage

        void writePreLinkage​(StatementWriter writer,
                             QNameToStatementDefinition stmtDef)
        Emits only pre-linkage-related statements to supplied writer.
        Parameters:
        writer - StatementWriter which should be used to emit statements.
        stmtDef - Map of available statement definitions. Only these statements may be written to statement writer, source MUST ignore and MUST NOT emit any other statements.
        Throws:
        SourceException - If source was is not valid, or provided statement writer failed to write statements.
      • writeLinkage

        void writeLinkage​(StatementWriter writer,
                          QNameToStatementDefinition stmtDef,
                          PrefixToModule preLinkagePrefixes,
                          YangVersion yangVersion)
        Emits only linkage-related statements to supplied writer based on specified YANG version. Default implementation does not make any differences between versions.
        Parameters:
        writer - StatementWriter which should be used to emit statements.
        stmtDef - Map of available statement definitions. Only these statements may be written to statement writer, source MUST ignore and MUST NOT emit any other statements.
        preLinkagePrefixes - Pre-linkage map of source-specific prefixes to namespaces
        yangVersion - yang version.
        Throws:
        SourceException - If source was is not valid, or provided statement writer failed to write statements.
      • writeLinkageAndStatementDefinitions

        void writeLinkageAndStatementDefinitions​(StatementWriter writer,
                                                 QNameToStatementDefinition stmtDef,
                                                 PrefixToModule prefixes,
                                                 YangVersion yangVersion)
        Emits only linkage and language extension statements to supplied writer based on specified YANG version. Default implementation does not make any differences between versions.
        Parameters:
        writer - StatementWriter which should be used to emit statements.
        stmtDef - Map of available statement definitions. Only these statements may be written to statement writer, source MUST ignore and MUST NOT emit any other statements.
        prefixes - Map of source-specific prefixes to namespaces
        yangVersion - YANG version.
        Throws:
        SourceException - If source was is not valid, or provided statement writer failed to write statements.
      • writeFull

        void writeFull​(StatementWriter writer,
                       QNameToStatementDefinition stmtDef,
                       PrefixToModule prefixes,
                       YangVersion yangVersion)
        Emits every statements present in this statement source to supplied writer based on specified yang version. Default implementation does not make any differences between versions.
        Parameters:
        writer - StatementWriter which should be used to emit statements.
        stmtDef - Map of available statement definitions.
        prefixes - Map of source-specific prefixes to namespaces
        yangVersion - yang version.
        Throws:
        SourceException - If source was is not valid, or provided statement writer failed to write statements.