[YANGTOOLS-1510] Capture AnnotationName Created: 16/May/23  Updated: 21/Dec/23  Resolved: 21/Dec/23

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 11.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 are currently relying on plain QName to hold RFC7952 annotations' name. Improve type safety by introducing AnnotationName, which follows the design of MountPointLabel. Update AnnotationStatement to operate on AnnotationName as the argument.

Note that due to overlap, we should also provide an AbstractDeclaredStatement and AbstractStatementSupport subclass to generalize the logic of having a QName-wrapping argument. At the end of the day, AbstractQNameStatementSupport is an identity-based specialization of that.



 Comments   
Comment by Robert Varga [ 21/Dec/23 ]

Done in https://git.opendaylight.org/gerrit/c/yangtools/+/106075

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