1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.help.internal.toc; 12 13 import org.eclipse.help.internal.model.*; 14 /** 15 * ITocNode interface. 16 */ 17 interface ITocNode extends INavigationElement { 18 19 /** 20 * Adds another element as child of this element Modifies parents of a child 21 * as well 22 * 23 * @param child 24 * node to add as child 25 */ 26 void addChild(ITocNode child); 27 28 /** 29 * When a builder builds the navigation, each node must "accomodate" the 30 * builder by responding to the build() command. 31 */ 32 void build(TocBuilder builder); 33 } 34