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

Allow YANG parser to not create SchemaPaths in SchemaNodes

    XMLWordPrintable

Details

    • Story
    • Status: Resolved
    • Medium
    • Resolution: Won't Do
    • None
    • None
    • parser
    • None

    Description

      Add an option (environment-default) where YANG parser will not expose SchemaNode.getPath(), but rather will throw UnsupportedOperationException when the method is called.

      Class layout should not suffer much – the field currently used for SchemaPath can be made polymorphic (i.e. declared as Object) and dispatch getQName() and getPath() based on either run-time type of the object or based on a runtime constant.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: