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

Honor if-feature during SchemaContext assembly

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      When assembling a SchemaContext, we should omit any parts which are conditional on an if-feature (http://tools.ietf.org/html/rfc6020#section-7.18.2) so the end result is the effective view of the world without omitted features.

      Defined features should not be explicitly enumerated, but rather controlled by the user by providing a Predicate<QName>. Implementations of Predicate#apply() will indicate acceptance via returning 'true', skip the feature by returning 'false', or halt SchemaContext assembly by throwing a subclass of RuntimeException (probably IllegalArgumentException or similar).

      Attachments

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

        Activity

          People

            ifoltin Igor Foltin
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: