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

Add yang.common.UnresolvedQName

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 8.0.0
    • None
    • None

      We currently directly subclass AbstractQName to implement two unresolved QName classes: QualifiedQName and UnqualifiedQName. This design is a bit lacking, as it presents these two as direct alternatives to QName, without having a way to express a general unresolved QName.

      Introduce UnresolvedQName and specialize it through these two classes. Since they are rather tightly bound, also rename QualifiedQName to UnresolvedQName.Qualified and UnresolvedQName.Unqualified.

      This allows users to make a clear distinction in their APIs between QName (i.e. resolved) and UnresolvedQName (qualified or not).

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

              Created:
              Updated:
              Resolved: