1 /** 2 * <copyright> 3 * 4 * Copyright (c) 2002-2004 IBM Corporation and others. 5 * All rights reserved. This program and the accompanying materials 6 * are made available under the terms of the Eclipse Public License v1.0 7 * which accompanies this distribution, and is available at 8 * http://www.eclipse.org/legal/epl-v10.html 9 * 10 * Contributors: 11 * IBM - Initial API and implementation 12 * 13 * </copyright> 14 * 15 * $Id: NotificationChain.java,v 1.3 2005/06/08 06:19:08 nickb Exp $ 16 */ 17 package org.eclipse.emf.common.notify; 18 19 20 /** 21 * An accumulator of notifications. 22 * As notifications are produced, 23 * they are {@link #add accumulated} in a chain, 24 * and possibly even merged, 25 * before finally being {@link #dispatch dispatched} to the notifier. 26 */ 27 public interface NotificationChain 28 { 29 /** 30 * Adds a notification to the chain. 31 * @return whether the notification was added. 32 */ 33 public boolean add(Notification notification); 34 35 /** 36 * Dispatches each notification to the appropriate notifier via 37 * {@link org.eclipse.emf.common.notify.Notifier#eNotify Notifier.eNotify}. 38 */ 39 public void dispatch(); 40 } 41