Class WikiText.Link
java.lang.Object
org.getalp.dbnary.wiki.WikiText.Token
org.getalp.dbnary.wiki.WikiText.Link
- All Implemented Interfaces:
Visitable
- Direct Known Subclasses:
WikiText.ExternalLink, WikiText.InternalLink
- Enclosing class:
WikiText
-
Field Summary
FieldsFields inherited from class WikiText.Token
offset -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class WikiText.Token
addFlattenedTokens, asExternalLink, asHeading, asHTMLComment, asIndentation, asIndentedItem, asInternalLink, asItem, asListItem, asNoWiki, asNumberedListItem, asTemplate, asText, asWikiContent, asWikiSection, fillText, getBeginIndex, getEndIndex, getFullContent, getText, getWikiText, setEndOffset, toString
-
Field Details
-
target
-
linkTextContent
-
-
Constructor Details
-
Link
public Link()
-
-
Method Details
-
addToken
- Specified by:
addTokenin classWikiText.Token
-
getFullTargetText
-
getTarget
-
getLinkContent
-
hasAnchor
public boolean hasAnchor() -
getAnchorText
return the anchor part of the link- Returns:
- the anchor of the link, null if no anchor
-
getTargetText
return the target of the link as a text without any anchor- Returns:
- the target of the link
-
getLinkText
-
getLink
-
asLink
- Overrides:
asLinkin classWikiText.Token
-