| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.links.Link
public abstract class Link
A link that can be rendered in a page. Ideally, links should be immutable.
| Field Summary | |
|---|---|
protected  boolean | 
aliasSpecified
Whether an alias is included in the originalLinkText. | 
protected  String | 
iconName
 | 
protected  String | 
linkBody
The contents that are being marked up by the link.  | 
protected  boolean | 
relativeUrl
 | 
protected  String | 
title
 | 
protected  List | 
titleArgs
 | 
protected  String | 
titleKey
 | 
protected  String | 
url
 | 
protected  String | 
wikiDestination
The destination portion of the originalLinkText. | 
protected  String | 
wikiTitle
The optional title portion of the originalLinkText. | 
| Constructor Summary | |
|---|---|
Link(String originalLinkText)
Construct a link from some text (as passed into LinkResolver#createLink)  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(Object o)
 | 
 String | 
getIconName()
A name that the renderer can use to look up an appropriate icon.  | 
 String | 
getLinkAttributes()
This is a method that will allow a link to set any additional attributes that are related to the specific link type.  | 
 String | 
getLinkBody()
Get the contents that are being marked up by the link  | 
 String | 
getOriginalLinkText()
Get the original text used to build this link  | 
 String | 
getTitle()
Get the link title text  | 
 List | 
getTitleArgs()
Retrieves the arguments to use in the internationalised message identified by getTitleKey() | 
 String | 
getTitleKey()
Retrieve the i18n key for the title if defined.  | 
 String | 
getUnpermittedLinkBody()
Get the link body as it would be displayed if the link wasn't permitted to be viewed  | 
 String | 
getUrl()
Get the destination URL for this link.  | 
 String | 
getWikiDestination()
Gets the destination portion of the originalLinkText. | 
 String | 
getWikiTitle()
Gets the optional title portion of the originalLinkText. | 
 int | 
hashCode()
 | 
 boolean | 
isAliasSpecified()
Returns true if the link markup specifies an alias.  | 
 boolean | 
isRelativeUrl()
Is the URL relativeUrl to the application's context path?  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected String url
protected String title
protected String linkBody
protected boolean relativeUrl
protected String iconName
protected String titleKey
protected List titleArgs
protected String wikiDestination
originalLinkText.
protected String wikiTitle
originalLinkText.
protected boolean aliasSpecified
originalLinkText.
| Constructor Detail | 
|---|
public Link(String originalLinkText)
originalLinkText - the original text of the link| Method Detail | 
|---|
public String getOriginalLinkText()
public String getUrl()
public String getTitle()
public String getLinkBody()
public String getUnpermittedLinkBody()
public boolean isRelativeUrl()
public String getLinkAttributes()
public String getIconName()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getTitleKey()
public List getTitleArgs()
getTitleKey()
public String getWikiDestination()
originalLinkText.
public String getWikiTitle()
originalLinkText. Returns null if no title was present
 in the original link text.
public boolean isAliasSpecified()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||