Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-339

Improve QNAME static field

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • Fluorine
    • None
    • Binding codegen
    • None

      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.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: