Class BasicNotifierImpl

java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
All Implemented Interfaces:
Notifier
Direct Known Subclasses:
NotifierImpl

public class BasicNotifierImpl extends Object implements Notifier
An extensible notifier implementation.
  • Constructor Details

    • BasicNotifierImpl

      public BasicNotifierImpl()
      Creates a blank new instance.
  • Method Details

    • eAdapters

      public EList<Adapter> eAdapters()
      Description copied from interface: Notifier
      Returns list of the adapters associated with this notifier.
      Specified by:
      eAdapters in interface Notifier
      Returns:
      the adapters associated with this notifier.
    • eBasicAdapters

      protected BasicEList<Adapter> eBasicAdapters()
      Returns the adapter list, even if it is null.
      Returns:
      the adapter list, even if it is null.
    • eBasicAdapterArray

      protected Adapter[] eBasicAdapterArray()
      Returns the underlying array of adapters. The length of this array reflects exactly the number of adapters where null represents the lack of any adapters. This array may not be modified by the caller and must be guaranteed not to be modified even if the list of adapters is modified.
      Returns:
      the underlying array of adapters.
    • eBasicHasAdapters

      protected boolean eBasicHasAdapters()
      Returns whether there are any adapters.
      Returns:
      whether there are any adapters.
    • eDeliver

      public boolean eDeliver()
      Description copied from interface: Notifier
      Returns whether this notifier will deliver notifications to the adapters.
      Specified by:
      eDeliver in interface Notifier
      Returns:
      whether notifications will be delivered.
      See Also:
    • eSetDeliver

      public void eSetDeliver(boolean deliver)
      Description copied from interface: Notifier
      Sets whether this notifier will deliver notifications to the adapters.
      Specified by:
      eSetDeliver in interface Notifier
      Parameters:
      deliver - whether or not to deliver.
      See Also:
    • eNotify

      public void eNotify(Notification notification)
      Description copied from interface: Notifier
      Notifies a change to a feature of this notifier as described by the notification. The notifications will generally be delivered to the adapters via Adapter.notifyChanged.
      Specified by:
      eNotify in interface Notifier
      Parameters:
      notification - a description of the change.
    • eNotificationRequired

      public boolean eNotificationRequired()
      Returns whether eNotify needs to be called. This may return true even when eDeliver is false or when eAdapters is empty.
      Returns:
      whether eNotify needs to be called.