1 11 package org.eclipse.help.internal.context; 12 import org.eclipse.help.*; 13 import org.xml.sax.*; 14 17 public class RelatedTopic extends ContextsNode implements IHelpResource { 18 protected String href; 19 protected String label; 20 public RelatedTopic(Attributes attrs) { 21 super(attrs); 22 if (attrs == null) 23 return; 24 href = attrs.getValue(ContextsNode.RELATED_HREF); 25 this.label = attrs.getValue(ContextsNode.RELATED_LABEL); 26 if (this.label == null) 27 this.label = ""; } 29 public String getHref() { 30 return href; 31 } 32 public void setHref(String href) { 33 this.href = href; 34 } 35 38 public String getLabel() { 39 return label; 40 } 41 44 public void build(ContextsBuilder builder) { 45 builder.build(this); 46 } 47 } 48 | Popular Tags |