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

Add data.api.schema.NormalizedYangData

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: