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

SchemaContext: unique SchemaNodeidentifiers

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      Since a SchemaContext is an immutable entity containing children which get referenced a lot, it would nice to have a really quick identifier unique within a SchemaContext instance.

      We have implemented something similar for declared statements in yang-parser-impl by each substatement track the (int) offset in which it appears in its parent.

      This allows quick lookups in the form of /2/7/0/1 to express the SchemaPath within a SchemaContext – extremely useful when there is some schema-specific state being tracked.

      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: