org.eclipse.emf.common.notify.impl
Class AdapterImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.AdapterImpl
All Implemented Interfaces:
Adapter
Direct Known Subclasses:
AdapterFactoryEditingDomain.EditingDomainProvider, EContentAdapter, ESuperAdapter, ItemProviderAdapter, MappingRootImpl.MappedObjectStateAdapter, ResourceImpl.ModificationTrackingAdapter

public class AdapterImpl
extends Object
implements Adapter

An extensible adapter implementation.


Field Summary
protected  Notifier target
          The last notifier set to this adapter.
 
Constructor Summary
AdapterImpl()
          Creates an instance.
 
Method Summary
 Notifier getTarget()
          Returns the target from which the adapter receives notification.
 boolean isAdapterForType(Object type)
          Returns false
 void notifyChanged(Notification msg)
          Does nothing; clients may override so that it does something.
 void setTarget(Notifier newTarget)
          Sets the target from which the adapter will receive notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected Notifier target
The last notifier set to this adapter.

Constructor Detail

AdapterImpl

public AdapterImpl()
Creates an instance.

Method Detail

isAdapterForType

public boolean isAdapterForType(Object type)
Returns false

Specified by:
isAdapterForType in interface Adapter
Parameters:
type - the type.
Returns:
false
See Also:
AdapterFactory.isFactoryForType(java.lang.Object)

notifyChanged

public void notifyChanged(Notification msg)
Does nothing; clients may override so that it does something.

Specified by:
notifyChanged in interface Adapter
Parameters:
msg - 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
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
Parameters:
newTarget - the new notifier.
See Also:
Adapter.getTarget()

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.