Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1117

Redefine TypeStatement in terms of QName

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • 7.0.0
    • None
    • parser
    • None

      TypeStatement currently takes String argument, which is not entirely accurate, as it does not provide type expansion required for lookup.

      This leads to SourceExceptions during building of effective statement rather than a failure to parse the argument when the statement is being defined.

      Fix the definition of TypeStatement and TypeEffectiveStatement so that these take a QName argument.

      This leads to the question of which QNameModule should built-in types resolve – and that should be "urn:ietf:params:xml:ns:yang:1", as defined in org.opendaylight.yangtools.yang.model.util.BaseTypes. During unprefixed parsing, hence AbstractTypeStatementSupport needs to account for this manually.

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

              Created:
              Updated:
              Resolved: