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

Do not use Class for IdentifierNamespace identification

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 10.0.0
    • None
    • model-api
    • None

      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.

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

              Created:
              Updated:
              Resolved: