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

Add data.api.schema.NormalizedYangData

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Highest
    • Resolution: Done
    • None
    • 11.0.0
    • data-api

    Description

      rc:yang-data extension, as delivered in YANGTOOLS-1443, requires a yang.data.api representation. Unlike all previous bits of data, this cannot be identified by a PathArgument, because the identifier is a plain String, hence we cannot reliably form a QName.

      We really want something like this:

      public interface NormalizedYangData extends DataContainerNode, Identifiable<YangDataName> {
          // The single element as per spec
          DataContainerChild child();
      
          @Override
          default Set<DataContainerChild> body() {
              return ImmutableSet.of(child());
          }
      }
       

      For this to happen we need to disconnect DataContainerNode from Identifiable<PathArgument> and also have to figure out what to do about NormalizationResult, as that carries a NormalizedNode as the data component, whereas we want to hold either a NormalizedYangData.

      Attachments

        Issue Links

          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: