public Content getHyperLink(DocLink link, Content label, String title, String target) {
   HtmlTree anchor = HtmlTree.A(link.toString(), label);
   if (title != null && title.length() != 0) {
     anchor.addAttr(HtmlAttr.TITLE, title);
   }
   if (target != null && target.length() != 0) {
     anchor.addAttr(HtmlAttr.TARGET, target);
   }
   return anchor;
 }
 /**
  * Add a line from source to the HTML file that is generated.
  *
  * @param pre the content tree to which the line will be added.
  * @param line the string to format.
  * @param currentLineNo the current number.
  */
 private void addLine(Content pre, String line, int currentLineNo) {
   if (line != null) {
     Content anchor =
         HtmlTree.A(
             configuration.htmlVersion,
             "line." + Integer.toString(currentLineNo),
             new StringContent(utils.replaceTabs(configuration, line)));
     pre.addContent(anchor);
     pre.addContent(NEW_LINE);
   }
 }
 public Content getHyperLink(
     DocLink link, Content label, boolean strong, String stylename, String title, String target) {
   Content body = label;
   if (strong) {
     body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body);
   }
   if (stylename != null && stylename.length() != 0) {
     HtmlTree t = new HtmlTree(HtmlTag.FONT, body);
     t.addAttr(HtmlAttr.CLASS, stylename);
     body = t;
   }
   HtmlTree l = HtmlTree.A(link.toString(), body);
   if (title != null && title.length() != 0) {
     l.addAttr(HtmlAttr.TITLE, title);
   }
   if (target != null && target.length() != 0) {
     l.addAttr(HtmlAttr.TARGET, target);
   }
   return l;
 }