org.eclipse.viatra.query.runtime.base.api

## Interface EMFBaseIndexChangeListener

-     public interface EMFBaseIndexChangeListener

  Listener interface for change notifications from the VIATRA Base index.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `notifyChanged(boolean indexChanged)` Called after a model change is handled by the VIATRA Base index and if `indexChanged == onlyOnIndexChange()`.
    `boolean` | `onlyOnIndexChange()` NOTE: it is possible that this method is called only ONCE! Consider returning a constant value that is set in the constructor.

- - ### Method Detail

    - #### onlyOnIndexChange

          boolean onlyOnIndexChange()

      NOTE: it is possible that this method is called only ONCE! Consider returning a constant value that is set in the constructor.
      Returns:
        true, if the listener should be notified only after index changes, false if notification is needed after each model change

    - #### notifyChanged

          void notifyChanged(boolean indexChanged)

      Called after a model change is handled by the VIATRA Base index and if `indexChanged == onlyOnIndexChange()`.
      Parameters:
        `indexChanged` - true, if the model change also affected the contents of the base index