[YANGTOOLS-1329] Add yang.common.UnresolvedQName Created: 27/Sep/21  Updated: 10/Apr/22  Resolved: 27/Sep/21

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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).


Generated at Wed Feb 07 20:55:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.