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

Do not use Class for IdentifierNamespace identification

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 10.0.0
    • model-api
    • None

    Description

      The object model for namespaces in yang-model-api is awkward:
      1. it requires Map<K, V>, where there are two classes of users: iterators and lookups
      2. it requires weird abstract classes and Class<?> objects being passed around
      3. it is a universally required, but there are a number of statement classes which do not care about namespaces

      Revisit the definitions here, so that we replace access through EffectiveStatement.get(Class<? extends IdentifierNamespace>) by dedicated methods for each namespace.

      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: