[YANGTOOLS-1477] Define a YangDataName in yang.common Created: 17/Jan/23  Updated: 23/Jan/23  Resolved: 23/Jan/23

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

Type: New Feature 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

Issue Links:
Blocks
blocks MDSAL-808 Generate NAME constant for ietf-restc... Resolved
Issue split
split to YANGTOOLS-1479 Update YangDataStatement to use YangD... Resolved
Relates
relates to MDSAL-675 Generate structures for RFC8040 yang-... Resolved

 Description   

RFC8040 yang-data extension defines a template name. RFC8791 builds on top of it, but there is a subtle difference: 'yang-data' implies a String template name, where as 'structure' implies adressability through absolute-schema-nodeid – which implies schema tree addressability, which implies argument is 'identifier' bound to a namespace.

At any rate, when we generate MD-SAL Java bindings for yang-data, we want to also expose the equivalent of a QName – except here it is a QNameModule and any random string.

Add a YangDataName class, which functions pretty much just like QName, but does not have the localName implications.

Update YangDataStatement to use this common construct.


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