KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > internal > toc > Link


1 /*******************************************************************************
2  * Copyright (c) 2007 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.ILink;
14 import org.eclipse.help.internal.UAElement;
15 import org.w3c.dom.Element JavaDoc;
16
17 public class Link extends UAElement implements ILink {
18
19     public static final String JavaDoc NAME = "link"; //$NON-NLS-1$
20
public static final String JavaDoc ATTRIBUTE_TOC = "toc"; //$NON-NLS-1$
21

22     public Link(ILink src) {
23         super(NAME, src);
24         setToc(src.getToc());
25     }
26     
27     public Link(Element src) {
28         super(src);
29     }
30
31     public String JavaDoc getToc() {
32         return getAttribute(ATTRIBUTE_TOC);
33     }
34     
35     public void setToc(String JavaDoc toc) {
36         setAttribute(ATTRIBUTE_TOC, toc);
37     }
38 }
39
Popular Tags