public class GenericLinkParser extends Object
| Constructor and Description |
|---|
GenericLinkParser(String linkText) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public GenericLinkParser(String linkText)
public void parseAsContentLink()
throws ParseException
ParseExceptionpublic 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)
buffer - the text we want to divide. Will be modified during the operationdivider - the character to divide the buffer onCopyright © 2019 Atlassian. All rights reserved.