Define a YangDataName in yang.common

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.

Activity

Show:
Done

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Created January 17, 2023 at 9:36 PM
Updated January 23, 2023 at 9:44 AM
Resolved January 23, 2023 at 9:44 AM