org.eclipse.emf.common.notify.impl
Class AdapterImpl
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.AdapterImpl
- All Implemented Interfaces:
- Adapter
- Direct Known Subclasses:
- EContentAdapter, ESuperAdapter, ItemProviderAdapter, MappingRootImpl.MappedObjectStateAdapter, ResourceImpl.ModificationTrackingAdapter
- public class AdapterImpl
- extends java.lang.Object
- implements Adapter
An extensible adapter implementation.
Field Summary |
protected Notifier |
target
The last notifier set to this adapter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
protected Notifier target
- The last notifier set to this adapter.
AdapterImpl
public AdapterImpl()
- Creates an instance.
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Returns
false
- Specified by:
isAdapterForType
in interface Adapter
- Parameters:
type
- the type.- Returns:
false
notifyChanged
public void notifyChanged(Notification msg)
- Does nothing; clients may override so that it does something.
- Specified by:
notifyChanged
in interface Adapter
- Following copied from interface:
org.eclipse.emf.common.notify.Adapter
- Parameters:
notification
- a description of the change.
getTarget
public Notifier getTarget()
- Description copied from interface:
Adapter
- Returns the target from which the adapter receives notification.
In general, an adapter may be shared by more than one notifier.
- Specified by:
getTarget
in interface Adapter
- Following copied from interface:
org.eclipse.emf.common.notify.Adapter
- Returns:
- the target notifier.
- See Also:
Adapter.setTarget(org.eclipse.emf.common.notify.Notifier)
setTarget
public void setTarget(Notifier newTarget)
- Description copied from interface:
Adapter
- Sets the target from which the adapter will receive notification.
In general, an adapter may be shared by more than one notifier.
- Specified by:
setTarget
in interface Adapter
- Following copied from interface:
org.eclipse.emf.common.notify.Adapter
- Parameters:
newTarget
- the new notifier.- See Also:
Adapter.getTarget()