com.ibm.etools.emf.notify
Interface Notifier

All Known Subinterfaces:
Extent, Resource, ResourceSet

public interface Notifier


Field Summary
static int ADD
           
static int ADD_MANY
           
static java.lang.String copyright
           
static int CREATE
           
static int MOVE
           
static int NO_INDEX
           
static int REMOVE
           
static int REMOVE_MANY
           
static int REMOVING_ADAPTER
           
static int SET
           
static int TOUCH
           
static int UNSET
           
 
Method Summary
 void addAdapter(Adapter o)
          Add an adapter of this notifier.
 Adapter getAdapter(java.lang.Object type)
          Return an exisiting adapter of type "type" or if none found create a new adapter using a registered adapter factory
 java.util.Collection getAdapters()
          Return a read-only Collection of the Adapters to this notifier.
 Adapter getExistingAdapter(java.lang.Object type)
          Return an exisiting adapter of type "type" or null if none found
 boolean isDelivery()
          Get the delivery status of notifications to the adapters of the notifier.
 boolean isDeliveryAll()
          Get the delivery status of notifications to the adapters of all notifiers.
 void notify(int eventType, com.ibm.etools.emf.ref.RefObject sf, java.lang.Object oldValue, java.lang.Object newValue, int pos)
          Deprecated. Please replace with notify(Notification)
 void notify(Notification msg)
          Notify a change according to the input notification list.
 void removeAdapter(Adapter o)
          Remove an adapter of this notifier.
 void removeAllAdapters()
          Remove all the adapters of this notifier.
 void setDelivery(boolean deliver)
          Set the delivery status of notifications to the adapters of the notifier.
 void setDeliveryAll(boolean deliver)
          Set the delivery status of notifications to the adapters of all notifiers.
 

Field Detail

copyright

public static final java.lang.String copyright

CREATE

public static final int CREATE

SET

public static final int SET

UNSET

public static final int UNSET

ADD

public static final int ADD

REMOVE

public static final int REMOVE

ADD_MANY

public static final int ADD_MANY

REMOVE_MANY

public static final int REMOVE_MANY

MOVE

public static final int MOVE

TOUCH

public static final int TOUCH

REMOVING_ADAPTER

public static final int REMOVING_ADAPTER

NO_INDEX

public static final int NO_INDEX
Method Detail

addAdapter

public void addAdapter(Adapter o)
Add an adapter of this notifier.
Parameters:
o - com.ibm.etools.emf.notify.Adapter

getAdapters

public java.util.Collection getAdapters()
Return a read-only Collection of the Adapters to this notifier.
Returns:
com.ibm.etools.emf.notify.Adapter

getExistingAdapter

public Adapter getExistingAdapter(java.lang.Object type)
Return an exisiting adapter of type "type" or null if none found

getAdapter

public Adapter getAdapter(java.lang.Object type)
Return an exisiting adapter of type "type" or if none found create a new adapter using a registered adapter factory

isDelivery

public boolean isDelivery()
Get the delivery status of notifications to the adapters of the notifier.
Returns:
boolean

isDeliveryAll

public boolean isDeliveryAll()
Get the delivery status of notifications to the adapters of all notifiers.
Returns:
boolean

notify

public void notify(int eventType,
                   com.ibm.etools.emf.ref.RefObject sf,
                   java.lang.Object oldValue,
                   java.lang.Object newValue,
                   int pos)
Deprecated. Please replace with notify(Notification)

Notify a change to the structural feature.
Parameters:
eventType - int
sf - com.ibm.etools.emf.ref.RefObject
oldValue - java.lang.Object
newValue - java.lang.Object
pos - int

notify

public void notify(Notification msg)
Notify a change according to the input notification list.

removeAdapter

public void removeAdapter(Adapter o)
Remove an adapter of this notifier.
Parameters:
o - com.ibm.etools.emf.notify.Adapter

removeAllAdapters

public void removeAllAdapters()
Remove all the adapters of this notifier.

setDelivery

public void setDelivery(boolean deliver)
Set the delivery status of notifications to the adapters of the notifier.
Parameters:
deliver - boolean

setDeliveryAll

public void setDeliveryAll(boolean deliver)
Set the delivery status of notifications to the adapters of all notifiers.
Parameters:
deliver - boolean