Package org.eclipse.emf.common.notify
Interface Adapter
- All Known Subinterfaces:
Adapter.Internal
- All Known Implementing Classes:
AdapterImpl,SingletonAdapterImpl
public interface Adapter
A receiver of notifications.
An adapter is typically associated with a
Notifier via an AdapterFactory.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn internal interface implemented by adapters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the target from which the adapter receives notification.booleanisAdapterForType(Object type) Returns whether the adapter is of the given type.voidnotifyChanged(Notification notification) Notifies that a change to some feature has occurred.voidSets the target from which the adapter will receive notification.
-
Method Details
-
notifyChanged
Notifies that a change to some feature has occurred.- Parameters:
notification- a description of the change.
-
getTarget
Notifier getTarget()Returns the target from which the adapter receives notification. In general, an adapter may be shared by more than one notifier.- Returns:
- the target notifier.
- See Also:
-
setTarget
Sets the target from which the adapter will receive notification. This method is only to be called by a notifier when this adapter is added to or removed from its adapter list. In general, an adapter may be shared by more than one notifier.- Parameters:
newTarget- the new notifier.- See Also:
-
isAdapterForType
Returns whether the adapter is of the given type. In general, an adapter may be the adapter for many types.- Parameters:
type- the type.- Returns:
- whether the adapter is of the given type.
- See Also:
-