Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-846

Unify (DOM)DataTreeIdentifier layout

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 13.0.0
    • Binding API, DOM API

    Description

      DOMDataTreeIdentifier and DataTreeIdentifier are almost equivalent, except their instantiation differs – for the worse, as DOMDataTreeIdentifier exposes its constructor.

      We should really tie them together with an mdsal.common.api construct:

      public interface LogicalDatastorePath<T extends LogicalDatastorePath<T, P>, P extends HierarchicalIdentifier<P>>
              extends HierarchicalIdentifier<T> {
          LogicalDatastoreType datastore();
      
          P path();
      
          @Override
          default boolean contains(final T other) {
              return datastore() == other.datastore() && path().contains(other.path());
          }
      }
      

      This will pave the way towards evolving these constructs, as now they have a common property: they bind a LogicalDatastoreType with their domain's instance-identifier representation.

      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: