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

Provide bridge methods from DocumentedNode to EffectiveStatement

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Medium Medium
    • 6.0.0
    • None
    • parser
    • None

      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();
      }
      

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

              Created:
              Updated:
              Resolved: