blob: 9b4e972b3c6e8694958c5bc95bde9fc65e5542bd [file] [log] [blame]
package org.eclipse.help.internal.contributions.xml;
/*
* Licensed Materials - Property of IBM,
* WebSphere Studio Workbench
* (c) Copyright IBM Corp 2000
*/
import org.eclipse.help.internal.contributors.TopicContributor;
import org.eclipse.help.internal.contributions.Topic;
import org.eclipse.help.internal.contributions.Visitor;
import org.xml.sax.*;
import org.eclipse.help.IHelpTopic;
/**
* Default implementation for a topic contribution
*/
public class HelpTopic extends HelpContribution implements Topic, IHelpTopic {
protected String href;
/**
* HelpTopic constructor comment.
*/
public HelpTopic(Attributes attrs) {
super(attrs);
if (attrs != null)
href = attrs.getValue(TopicContributor.TOPIC_HREF_ATTR);
}
/**
* Implements the method for the Visitor pattern
* @param visitor com.ibm.itp.contributions.Visitor
*/
public void accept(Visitor visitor) {
visitor.visit(this);
}
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
}