Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1a617d4aa2eebf0954036d09ee96dc4d988f7f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.eclipse.help.internal.contributions.xml;

/*
 * Licensed Materials - Property of IBM,
 * WebSphere Studio Workbench
 * (c) Copyright IBM Corp 2000
 */

import org.xml.sax.*;
import org.eclipse.help.internal.contributors.TopicContributor;
import org.eclipse.help.internal.contributions.*;

/**
 * Default implementation for a topic contribution
 */
public class HelpTopicRef extends HelpTopic implements TopicRef {
	protected Topic topic;
	public HelpTopicRef(Topic topic) {
		super(null);
		this.topic = topic;
		id = topic.getID();
	}
	public String getHref() {
		return topic.getHref();
	}
	public String getID() {
		return id;
	}
	public String getLabel() {
		return topic.getLabel();
	}
	public String getRawLabel() {
		return ((HelpTopic) topic).getRawLabel();
	}
	public Topic getTopic() {
		return topic;
	}
}

Back to the top