public StringBuffer addLinkTag ( StringBuffer sb ) { int iIndex = sb . lastIndexOf ( Utility . endTag ( this . getTableNames ( false ) ) ) ; if ( iIndex != - 1 ) { String strLink = Utility . encodeXML ( this . getLink ( ) ) ; String strHelpLink = strLink ; if ( strLink . indexOf ( ' ' ) != - 1 ) // Always strHelpLink = "?" + DBParams . HELP + "=" + "&amp;" + strLink . substring ( strLink . indexOf ( ' ' ) + 1 ) ; sb . insert ( iIndex , Utility . startTag ( XMLTags . LINK ) + strLink + Utility . endTag ( XMLTags . LINK ) + XmlUtilities . NEWLINE + Utility . startTag ( XMLTags . HELPLINK ) + strHelpLink + Utility . endTag ( XMLTags . HELPLINK ) + XmlUtilities . NEWLINE ) ; } return sb ; }
Add a tag to this XML for the menu link .