Class WikiText.WikiContent
java.lang.Object
org.getalp.dbnary.wiki.WikiText.Token
org.getalp.dbnary.wiki.WikiText.WikiContent
- All Implemented Interfaces:
Visitable
- Enclosing class:
WikiText
Upper element containing text/links/templates and comments interleaved
-
Field Summary
Fields inherited from class WikiText.Token
offset -
Method Summary
Modifier and TypeMethodDescription<T> Tprotected voidvoidfilteredTokens(WikiEventFilter filter) headers()headers(int level) headersMatching(int level, Pattern pattern) headersMatching(Pattern pattern) links()sections()sections(int level) tokens()returns a List of wikiTokens including Text tokens that may be intertwined.returns a List of wikiTokens including Text tokens that may be intertwined.returns all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments.returns a stream serving all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments.returns a stream serving all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments.returns all wikiTokens in the wikiText, that is all special media wiki constructs, including html comments.Methods inherited from class WikiText.Token
addFlattenedTokens, asExternalLink, asHeading, asHTMLComment, asIndentation, asIndentedItem, asInternalLink, asItem, asLink, asListItem, asNoWiki, asNumberedListItem, asTemplate, asText, asWikiSection, getBeginIndex, getEndIndex, getFullContent, getText, getWikiText, setEndOffset, toString
-
Method Details
-
addToken
- Specified by:
addTokenin classWikiText.Token
-
wikiTokensStream
returns a stream serving all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments. This does not return the text tokens that are intertwined between the wiki tokens.- Returns:
- a Stream of Tokens
-
wikiTokens
returns all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments. This does not return the text tokens that are intertwined between the wiki tokens.- Returns:
- a sequence of Tokens
-
wikiTokensStreamWithHtmlComments
returns a stream serving all wikiTokens in the wikiText, that is all special media wiki constructs, excluding html comments. This does not return the text tokens that are intertwined between the wiki tokens.- Returns:
- a Stream of Tokens
-
wikiTokensWithHtmlComments
returns all wikiTokens in the wikiText, that is all special media wiki constructs, including html comments. This does not return the text tokens that are intertwined between the wiki tokens.- Returns:
- a sequence of all Wiki Tokens
-
tokens
returns a List of wikiTokens including Text tokens that may be intertwined. HTML comments are ignored. Two successive Texts may be found if a comment was present in the wiki source.- Returns:
- a list of tokens (either text or wikiTokens)
-
tokensWithHtmlComments
returns a List of wikiTokens including Text tokens that may be intertwined. HTML comments are included in the list.- Returns:
- a list of tokens (either text or wikiTokens)
-
fillText
- Specified by:
fillTextin classWikiText.Token
-
filteredTokens
-
sections
-
endOfContent
-
links
-
templatesOnUpperLevel
-
templates
-
headers
-
sections
-
headers
-
headersMatching
-
headersMatching
-
accept
-
asWikiContent
- Overrides:
asWikiContentin classWikiText.Token
-