Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1507

Add an immediate YangTextSchemaSource

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 11.0.0
    • parser

    Description

      We have downstreams who are caching YangTextSchemaSource content as a constant byte[].

      Add ImmediateYangTextSchemaSource, which holds a byte[], possibly with a symbolic name, which does all the (mediately) heavy lifting.

      While we are at it, the requirement to override addToStringAttributes() in both Yang and Yin text schema sources seems excessive: we provide the identifier by default. Make this method non-abstract, so that users are not required to provide this implementation.

      This necessitates updating the calling convention, which is a bit of pain. To make up some bonus points, configure ToStringHelper to ignore null values.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: