com.atlassian.renderer.links
Class BaseLink

java.lang.Object
  extended by com.atlassian.renderer.links.Link
      extended by com.atlassian.renderer.links.BaseLink
Direct Known Subclasses:
UrlLink

public abstract class BaseLink
extends Link


Field Summary
 
Fields inherited from class com.atlassian.renderer.links.Link
aliasSpecified, iconName, linkBody, relativeUrl, title, titleArgs, titleKey, url, wikiDestination, wikiTitle
 
Constructor Summary
protected BaseLink(GenericLinkParser parser)
           
 
Method Summary
 boolean equals(Object o)
           
 GenericLinkParser getOriginalParser()
           
 int hashCode()
           
protected  void setI18nTitle(String titleKey, List titleArgs)
          Set I18n key and argument list to use as a title.
protected  void setTitle(String title)
           
 
Methods inherited from class com.atlassian.renderer.links.Link
getIconName, getLinkAttributes, getLinkBody, getOriginalLinkText, getTitle, getTitleArgs, getTitleKey, getUnpermittedLinkBody, getUrl, getWikiDestination, getWikiTitle, isAliasSpecified, isRelativeUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseLink

protected BaseLink(GenericLinkParser parser)
Method Detail

setTitle

protected void setTitle(String title)

setI18nTitle

protected void setI18nTitle(String titleKey,
                            List titleArgs)
Set I18n key and argument list to use as a title. This will not cause Link.getTitle() to return the translated version, but will allow Link.getTitleKey() and Link.getTitleArgs() to be used.

Parameters:
titleKey - i18n key for the title of the link.
titleArgs - arguments to use in an internationalised message.

getOriginalParser

public GenericLinkParser getOriginalParser()

equals

public boolean equals(Object o)
Overrides:
equals in class Link

hashCode

public int hashCode()
Overrides:
hashCode in class Link


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.