KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > internal > index > Index


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 Intel 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  * Intel Corporation - initial API and implementation
10  * IBM Corporation - 122967 [Help] Remote help system
11  *******************************************************************************/

12 package org.eclipse.help.internal.index;
13
14 import org.eclipse.help.IIndex;
15 import org.eclipse.help.IIndexEntry;
16 import org.eclipse.help.internal.UAElement;
17 import org.w3c.dom.Element JavaDoc;
18
19 public class Index extends UAElement implements IIndex {
20     
21     public static final String JavaDoc NAME = "index"; //$NON-NLS-1$
22

23     public Index() {
24         super(NAME);
25     }
26     
27     public Index(IIndex src) {
28         super(NAME, src);
29         appendChildren(src.getChildren());
30     }
31     
32     public Index(Element src) {
33         super(src);
34     }
35
36     public IIndexEntry[] getEntries() {
37         return (IIndexEntry[])getChildren(IIndexEntry.class);
38     }
39 }
40
Popular Tags