/** * Given an array of <code>Tag</code>s representing this custom * tag, return its string representation. * @param tags the array of <code>Tag</code>s representing of this custom tag. */ public String toString(Tag[] tags) { if (tags.length == 0) { return null; } //String result = "\n<DT><B>" + HEADER + "</B></DT>"; String result = ""; result += "<div class=\"block\"><table cellpadding=2 cellspacing=0><tr><td>"; for (int i = 0; i < tags.length; i++) { if (i > 0) { result += "<p></p>"; } result += getAlgorithmAssociatedToTag (tags[i]).getDescription(); } return result + "</td></tr></table></div>\n"; }