Class BasicNotifierImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
- All Implemented Interfaces:
Notifier
- Direct Known Subclasses:
NotifierImpl
An extensible notifier implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBasicNotifierImpl.EAdapterList<E extends Object & Adapter>static interfaceAn interface implemented byadapter liststhat allowslistenersto observeadaptersbeing added and removed.static interfaceAn interface implemented by an adapter list that supports direct adapter lookup based on type, i.e., that directly and very efficiently implements the equivalent of the follow logic. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns list of the adapters associated with this notifier.protected Adapter[]Returns the underlying array of adapters.protected BasicEList<Adapter> Returns the adapter list, even if it isnull.protected booleanReturns whether there are any adapters.booleaneDeliver()Returns whether this notifier will deliver notifications to the adapters.booleanReturns whethereNotifyneeds to be called.voideNotify(Notification notification) Notifies a change to a feature of this notifier as described by the notification.voideSetDeliver(boolean deliver) Sets whether this notifier will deliver notifications to the adapters.
-
Constructor Details
-
BasicNotifierImpl
public BasicNotifierImpl()Creates a blank new instance.
-
-
Method Details
-
eAdapters
Description copied from interface:NotifierReturns list of the adapters associated with this notifier. -
eBasicAdapters
Returns the adapter list, even if it isnull.- Returns:
- the adapter list, even if it is
null.
-
eBasicAdapterArray
Returns the underlying array of adapters. The length of this array reflects exactly the number of adapters wherenullrepresents the lack of any adapters. This array may not be modified by the caller and must be guaranteed not to be modified even if thelist of adaptersis 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:NotifierReturns whether this notifier will deliver notifications to the adapters. -
eSetDeliver
public void eSetDeliver(boolean deliver) Description copied from interface:NotifierSets whether this notifier will deliver notifications to the adapters.- Specified by:
eSetDeliverin interfaceNotifier- Parameters:
deliver- whether or not to deliver.- See Also:
-
eNotify
Description copied from interface:NotifierNotifies a change to a feature of this notifier as described by the notification. The notifications will generally bedeliveredto theadaptersviaAdapter.notifyChanged. -
eNotificationRequired
public boolean eNotificationRequired()Returns whethereNotifyneeds to be called. This may returntrueeven wheneDeliverisfalseor wheneAdaptersis empty.- Returns:
- whether
eNotifyneeds to be called.
-