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

Provide bridge methods from DocumentedNode to EffectiveStatement

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 6.0.0
    • parser
    • None

    Description

      Most of DocumentedNode subclasses have an equivalent EffectiveStatement. This is certainly true on the implementation side, where the same objects are implementing both aspects.

      In order to allow users to migrate to EffectiveStatement world, we need to provide a bridge method, allowing to jump from, say, Module to ModuleEffectiveStatement:

      interface Module {
          /**
           *
           * @throws UnsupportedOperationException
           */
          @NonNull ModuleEffectiveStatement asEffectiveStatement();
      }
      

      Attachments

        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: