Class WikiText.InternalLink
java.lang.Object
org.getalp.dbnary.wiki.WikiText.Token
org.getalp.dbnary.wiki.WikiText.Link
org.getalp.dbnary.wiki.WikiText.InternalLink
- All Implemented Interfaces:
Visitable
- Enclosing class:
WikiText
-
Field Summary
Fields inherited from class WikiText.Link
linkTextContent, targetFields inherited from class WikiText.Token
offset -
Method Summary
Modifier and TypeMethodDescription<T> Tvoidreturns the full text of the link, including the suffix if anyreturns the suffix of the link, if anybooleanWikitext parser considers an internal link as invalid if it contains curly brace Here, we authorize templates but no "free" curly braces or other token.Methods inherited from class WikiText.Link
addToken, asLink, getAnchorText, getFullTargetText, getLink, getLinkContent, getTarget, getTargetText, hasAnchorMethods inherited from class WikiText.Token
addFlattenedTokens, asExternalLink, asHeading, asHTMLComment, asIndentation, asIndentedItem, asItem, asListItem, asNoWiki, asNumberedListItem, asTemplate, asText, asWikiContent, asWikiSection, getBeginIndex, getEndIndex, getFullContent, getText, getWikiText, setEndOffset, toString
-
Method Details
-
getLinkText
returns the full text of the link, including the suffix if any- Overrides:
getLinkTextin classWikiText.Link- Returns:
- the full text of the link
-
getSuffix
returns the suffix of the link, if any- Returns:
- the suffix of the link
-
fillText
- Specified by:
fillTextin classWikiText.Token
-
isValidInternalLink
public boolean isValidInternalLink()Wikitext parser considers an internal link as invalid if it contains curly brace Here, we authorize templates but no "free" curly braces or other token.- Returns:
- true iff the this is a VALID internal link
-
accept
-
asInternalLink
- Overrides:
asInternalLinkin classWikiText.Token
-