|
||||||||||
| 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 java.lang.String |
iconName
|
protected java.lang.String |
linkBody
The contents that are being marked up by the link. |
protected boolean |
relativeUrl
|
protected java.lang.String |
title
|
protected java.util.List |
titleArgs
|
protected java.lang.String |
titleKey
|
protected java.lang.String |
url
|
protected java.lang.String |
wikiDestination
The destination portion of the originalLinkText. |
protected java.lang.String |
wikiTitle
The optional title portion of the originalLinkText. |
| Constructor Summary | |
|---|---|
Link(java.lang.String originalLinkText)
Construct a link from some text (as passed into LinkResolver#createLink) |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getIconName()
A name that the renderer can use to look up an appropriate icon. |
java.lang.String |
getLinkAttributes()
This is a method that will allow a link to set any additional attributes that are related to the specific link type. |
java.lang.String |
getLinkBody()
Get the contents that are being marked up by the link |
java.lang.String |
getOriginalLinkText()
Get the original text used to build this link |
java.lang.String |
getTitle()
Get the link title text |
java.util.List |
getTitleArgs()
Retrieves the arguments to use in the internationalised message identified by getTitleKey() |
java.lang.String |
getTitleKey()
Retrieve the i18n key for the title if defined. |
java.lang.String |
getUnpermittedLinkBody()
Get the link body as it would be displayed if the link wasn't permitted to be viewed |
java.lang.String |
getUrl()
Get the destination URL for this link. |
java.lang.String |
getWikiDestination()
Gets the destination portion of the originalLinkText. |
java.lang.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 java.lang.String url
protected java.lang.String title
protected java.lang.String linkBody
protected boolean relativeUrl
protected java.lang.String iconName
protected java.lang.String titleKey
protected java.util.List titleArgs
protected java.lang.String wikiDestination
originalLinkText.
protected java.lang.String wikiTitle
originalLinkText.
protected boolean aliasSpecified
originalLinkText.
| Constructor Detail |
|---|
public Link(java.lang.String originalLinkText)
originalLinkText - the original text of the link| Method Detail |
|---|
public java.lang.String getOriginalLinkText()
public java.lang.String getUrl()
public java.lang.String getTitle()
public java.lang.String getLinkBody()
public java.lang.String getUnpermittedLinkBody()
public boolean isRelativeUrl()
public java.lang.String getLinkAttributes()
public java.lang.String getIconName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getTitleKey()
public java.util.List getTitleArgs()
getTitleKey()
public java.lang.String getWikiDestination()
originalLinkText.
public java.lang.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 | |||||||||