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

Add an immediate YangTextSchemaSource

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 11.0.0
    • None
    • parser

      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.

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

              Created:
              Updated:
              Resolved: