Overview

 
Package  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

org.eclipse.emf.common.notify
Interface Adapter

All Known Implementing Classes:
AdapterImpl, ChangeRecorder


public interface Adapter

A receiver of notifications. An adapter is typically associated with a Notifier via an AdapterFactory.


Method Summary
 Notifier getTarget()
          Returns the target from which the adapter receives notification.
 boolean isAdapterForType(Object type)
          Returns whether the adapter is of the given type.
 void notifyChanged(Notification notification)
          Notifies that a change to some feature has occurred.
 void setTarget(Notifier newTarget)
          Sets the target from which the adapter will receive notification.
 

Method Detail

 

 

notifyChanged

public void notifyChanged(Notification notification)

Notifies that a change to some feature has occurred.

Parameters:
notification - a description of the change.


 

 

getTarget

public 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(org.eclipse.emf.common.notify.Notifier)


 

 

setTarget

public void setTarget(Notifier newTarget)

Sets the target from which the adapter will receive notification. In general, an adapter may be shared by more than one notifier.

Parameters:
newTarget - the new notifier.
See Also:
getTarget()


 

 

isAdapterForType

public boolean isAdapterForType(Object type)

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:
AdapterFactory.isFactoryForType(java.lang.Object)


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD