|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.renderer.links.GenericLinkParser
public class GenericLinkParser
Constructor Summary | |
---|---|
GenericLinkParser(String linkText)
|
Method Summary | |
---|---|
static String |
divideOn(StringBuffer buffer,
char divider)
Split a StringBuffer on some dividing character. |
String |
getAnchor()
|
String |
getAttachmentName()
|
long |
getContentId()
Gets the content id parsed. |
String |
getDestinationTitle()
Gets the title of the destination content. |
String |
getLinkBody()
|
String |
getLinkTitle()
|
String |
getNotLinkBody()
|
String |
getOriginalLinkText()
|
String |
getShortcutName()
Returns the name of the shortcut. |
String |
getShortcutValue()
Returns the value of the shortcut. |
String |
getSpaceKey()
|
void |
parseAsContentLink()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericLinkParser(String linkText)
Method Detail |
---|
public void parseAsContentLink() throws ParseException
ParseException
public String getOriginalLinkText()
public String getLinkBody()
public String getNotLinkBody()
public String getSpaceKey()
public String getDestinationTitle()
parseAsContentLink()
, empty string otherwise.
public String getAnchor()
public String getShortcutName()
parseAsContentLink()
. Null if
not parsed as content link or if the link isn't a shortcut link.
public String getShortcutValue()
parseAsContentLink()
. Null if
not parsed as content link or if the link isn't a shortcut link.
public String getLinkTitle()
public String getAttachmentName()
public long getContentId()
public static String divideOn(StringBuffer buffer, char divider)
If the buffer begins with the divider, then the divider will be removed _and_ null returned. If the buffer ends with the divider, everything before the divider is returned and the buffer will remain empty.
buffer
- the text we want to divide. Will be modified during the operationdivider
- the character to divide the buffer on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |