1 /** 2 * <copyright> 3 * 4 * Copyright (c) 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: DiagnosticChain.java,v 1.2 2005/06/08 06:19:08 nickb Exp $ 16 */ 17 package org.eclipse.emf.common.util; 18 19 /** 20 * An accumulator of diagnostics. 21 */ 22 public interface DiagnosticChain 23 { 24 /** 25 * Adds the diagnostic to the chain. 26 */ 27 void add(Diagnostic diagnostic); 28 29 /** 30 * Adds the {@link Diagnostic#getChildren children} of the diagnostic to the chain. 31 */ 32 void addAll(Diagnostic diagnostic); 33 34 /** 35 * If the diagnostic has {@link Diagnostic#getChildren children}, 36 * {@link #addAll add}s those children, 37 * otherwise, {@link #add add}s the diagnostic. 38 */ 39 void merge(Diagnostic diagnostic); 40 } 41