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

Redefine TypeStatement in terms of QName

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 7.0.0
    • parser
    • None

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: