[MDSAL-339] Improve QNAME static field Created: 07/May/18  Updated: 28/May/18  Resolved: 28/May/18

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: Fluorine

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


 Description   

Binding generated interfaces and classes contain a public static QName member, which holds the YANG QName of the underlying model construct.

Currently we initialize this field through QName.create(String, String, String), which involves parsing/validating three strings: namespace, revision and local name.

MDSAL-325 has reworked YangModuleInfoImpl, so that it now exposes the Module's QName instead of strings – which is useful, as we can use that QName as the baseline – bypassing the need to hold namespace/revision strings and instead use QName.create(QName, String) – which is a lot faster.


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